Commit d7e47127 authored by Guillaume Pasero's avatar Guillaume Pasero

CI: make artifacts more visible

parent 2e4c87da
Pipeline #2196 passed with stages
in 11 minutes and 39 seconds
...@@ -54,11 +54,11 @@ stages: ...@@ -54,11 +54,11 @@ stages:
paths: paths:
- build/*/*.log #CMake log - build/*/*.log #CMake log
- log/*.txt # Others - log/*.txt # Others
- build/CookBook-*-html.tar.gz - CookBook-*-html.tar.gz
- build/Documentation/Cookbook/latex/CookBook-*.pdf - CookBook-*.pdf
- build/Documentation/Doxygen/OTB-Doxygen-*.tar.bz2 - OTB-Doxygen-*.tar.bz2
- build_packages/OTB-*.run - OTB-*.run
- build_packages/OTB-*.zip - OTB-*.zip
- build/compile_commands.json - build/compile_commands.json
- build/ctest_report.xml - build/ctest_report.xml
- build/cppcheck_report.xml - build/cppcheck_report.xml
...@@ -111,12 +111,16 @@ ubuntu-xdk-prepare: ...@@ -111,12 +111,16 @@ ubuntu-xdk-prepare:
script: script:
- ctest -VV -S CI/prepare_superbuild.cmake -DIMAGE_NAME:string=otb-ubuntu-superbuild-base - ctest -VV -S CI/prepare_superbuild.cmake -DIMAGE_NAME:string=otb-ubuntu-superbuild-base
ubuntu-xdk-build: ubuntu-xdk-build-doc:
extends: .common-build extends: .common-build
image: $BUILD_IMAGE_REGISTRY/otb-ubuntu-superbuild-base:18.04 image: $BUILD_IMAGE_REGISTRY/otb-ubuntu-superbuild-base:18.04
script: script:
- xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_superbuild.cmake -DIMAGE_NAME:string=ubuntu-18.04-llvm-xdk - xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_superbuild.cmake -DIMAGE_NAME:string=ubuntu-18.04-llvm-xdk
- mv build/CookBook-*-html.tar.gz . || true
- mv build/Documentation/Cookbook/latex/CookBook-*.pdf . || true
- mv build/Documentation/Doxygen/OTB-Doxygen-*.tar.bz2 . || true
- xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_packages.cmake -DIMAGE_NAME:string=otb-ubuntu-superbuild-base -DNAME_SUFFIX:string=-glibc-2.27 - xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_packages.cmake -DIMAGE_NAME:string=otb-ubuntu-superbuild-base -DNAME_SUFFIX:string=-glibc-2.27
- mv build_packages/OTB-*.run . || true
dependencies: dependencies:
- ubuntu-xdk-prepare - ubuntu-xdk-prepare
...@@ -133,6 +137,7 @@ centos-xdk-build: ...@@ -133,6 +137,7 @@ centos-xdk-build:
script: script:
- xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_superbuild.cmake -DIMAGE_NAME:string=otb-centos-superbuild-base - xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_superbuild.cmake -DIMAGE_NAME:string=otb-centos-superbuild-base
- xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_packages.cmake -DIMAGE_NAME:string=otb-centos-superbuild-base - xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_packages.cmake -DIMAGE_NAME:string=otb-centos-superbuild-base
- mv build_packages/OTB-*.run . || true
dependencies: dependencies:
- centos-xdk-prepare - centos-xdk-prepare
...@@ -151,6 +156,7 @@ macos-xdk-build: ...@@ -151,6 +156,7 @@ macos-xdk-build:
script: script:
- ctest -V -S CI/main_superbuild.cmake -DIMAGE_NAME:string=otb-macos-superbuild - ctest -V -S CI/main_superbuild.cmake -DIMAGE_NAME:string=otb-macos-superbuild
- ctest -V -S CI/main_packages.cmake -DIMAGE_NAME:string=otb-macos-superbuild - ctest -V -S CI/main_packages.cmake -DIMAGE_NAME:string=otb-macos-superbuild
- mv build_packages/OTB-*.run . || true
dependencies: dependencies:
- macos-xdk-prepare - macos-xdk-prepare
...@@ -190,6 +196,7 @@ windows-10-build: ...@@ -190,6 +196,7 @@ windows-10-build:
- ctest -V -S CI/main_superbuild.cmake - ctest -V -S CI/main_superbuild.cmake
- clcache.exe -s - clcache.exe -s
- ctest -V -S CI/main_packages.cmake - ctest -V -S CI/main_packages.cmake
- mv build_packages/OTB-*.zip . || true
dependencies: dependencies:
- windows-10-prepare - windows-10-prepare
...@@ -214,6 +221,7 @@ windows-8-build: ...@@ -214,6 +221,7 @@ windows-8-build:
- ctest -V -S CI/main_superbuild.cmake - ctest -V -S CI/main_superbuild.cmake
- clcache.exe -s - clcache.exe -s
- ctest -V -S CI/main_packages.cmake - ctest -V -S CI/main_packages.cmake
- mv build_packages/OTB-*.zip . || true
dependencies: dependencies:
- windows-8-prepare - windows-8-prepare
...@@ -305,7 +313,7 @@ deploy: ...@@ -305,7 +313,7 @@ deploy:
script: script:
- ./CI/deploy.sh $CI_COMMIT_REF_NAME $RC_NUMBER - ./CI/deploy.sh $CI_COMMIT_REF_NAME $RC_NUMBER
dependencies: dependencies:
- ubuntu-xdk-build - ubuntu-xdk-build-doc
- centos-xdk-build - centos-xdk-build
- macos-xdk-build - macos-xdk-build
- windows-8-build - windows-8-build
......
...@@ -37,27 +37,17 @@ else # On release ...@@ -37,27 +37,17 @@ else # On release
fi fi
# Push package # Push package
ls -all build_packages/
echo "Renaming binary packages" echo "Renaming binary packages"
# find build_packages/. -name "*.run" \ for name in $(find . -regex "./OTB-.*\(run\|zip\)"); do
# -exec sh -c 'mv "$1" "${1%.run}${pack_suffix}.run"' _ {} \;
for name in $(find build_packages/. -name "OTB-*.*")
do
len=(${#name}) len=(${#name})
mv "$name" "${name:0:$len-4}${pack_suffix}${name:$len-4}" mv "$name" "${name:0:$len-4}${pack_suffix}${name:$len-4}"
done done
# TO REMOVE
###########
ls -all build_packages/
###########
echo "Pushing binary packages" echo "Pushing binary packages"
scp build_packages/OTB-*.{run,zip} otbpush@otb5-vm2.orfeo-toolbox.org:${jobs_directory}/. scp OTB-*.{run,zip} otbpush@otb5-vm2.orfeo-toolbox.org:${jobs_directory}/.
# Push doc # Push doc
echo "Pushing documentation" echo "Pushing documentation"
scp build/{CookBook-*-html.tar.gz,\ scp {CookBook-*-html.tar.gz,CookBook-*.pdf,OTB-Doxygen-*.tar.bz2} otbpush@otb5-vm2.orfeo-toolbox.org:${jobs_directory}/.
/Documentation/{Cookbook/latex/CookBook-*.pdf,Doxygen/OTB-Doxygen-*.tar.bz2}} \
otbpush@otb5-vm2.orfeo-toolbox.org:${jobs_directory}/.
# Create zip, tar.gz and tar.xy source # Create zip, tar.gz and tar.xy source
echo "Creating source tarball and zip" echo "Creating source tarball and zip"
...@@ -75,4 +65,4 @@ echo "Pushing new sources" ...@@ -75,4 +65,4 @@ echo "Pushing new sources"
scp OTB-sources-$CI_COMMIT_SHORT_SHA.* \ scp OTB-sources-$CI_COMMIT_SHORT_SHA.* \
otbpush@otb5-vm2.orfeo-toolbox.org:${jobs_directory}/ otbpush@otb5-vm2.orfeo-toolbox.org:${jobs_directory}/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment