stages: - build - test - package build:mac:gcc: stage: build tags: - gcc - mac variables: CMAKE_OSX_ARCHITECTURES: x86_64 MACOSX_DEPLOYMENT_TARGET: "10.7" SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk before_script: - export PATH=$PATH:~/Qt/5.10.0/clang_64/bin script: - mkdir build - cd build - cmake -DBUILD_LIBTIFF=ON -DCMAKE_BUILD_TYPE=Release .. - cmake .. - make -j8 artifacts: expire_in: 2 hrs paths: - build/ build:mac:clang: stage: build tags: - clang - mac variables: CC: /usr/bin/clang CXX: /usr/bin/clang++ CMAKE_OSX_ARCHITECTURES: x86_64 MACOSX_DEPLOYMENT_TARGET: "10.7" SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk before_script: - export PATH=$PATH:~/Qt/5.10.0/clang_64/bin script: - mkdir build - cd build - cmake -DBUILD_LIBTIFF=ON -DCMAKE_BUILD_TYPE=Release .. - cmake .. - make -j8 artifacts: expire_in: 2 hrs paths: - build/ build:ubuntu: stage: build tags: - ubuntu before_script: - export PATH=$PATH:/opt/Qt/5.10.0/gcc_64/bin script: - mkdir build - cd build - cmake -DCMAKE_BUILD_TYPE=Release .. - make -j8 artifacts: expire_in: 2 hrs paths: - build/ build:windows: stage: build tags: - vs2017 - windows before_script: - set PATH=%PATH%;C:\Qt\5.10.0\msvc2017_64\bin script: - mkdir build - cd build - '"C:\Program Files\CMake\bin\cmake.exe" -G "Visual Studio 15 2017 Win64" -DBUILD_LIBTIFF=ON ..' - '"C:\Program Files\CMake\bin\cmake.exe" ..' - '"C:\Program Files\CMake\bin\cmake.exe" --build . --config Release --target ALL_BUILD' artifacts: expire_in: 2 hrs paths: - build/ test:mac:gcc: stage: test tags: - gcc - mac dependencies: - build:mac:gcc script: - cd build - ctest test:mac:clang: stage: test tags: - clang - mac dependencies: - build:mac:clang script: - cd build - cd resources - ruby test_lib.rb -c - ruby test_lib.rb test:ubuntu: stage: test tags: - ubuntu dependencies: - build:ubuntu script: - cd build - cd resources - ruby test_lib.rb -c - ruby test_lib.rb test:windows: stage: test tags: - windows dependencies: - build:windows script: - cd build - cd resources - ruby test_lib.rb -c - ruby test_lib.rb package:mac: stage: package tags: - clang - mac dependencies: - build:mac:clang variables: CC: /usr/bin/clang CXX: /usr/bin/clang++ CMAKE_OSX_ARCHITECTURES: x86_64 MACOSX_DEPLOYMENT_TARGET: "10.7" SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk before_script: - export PATH=$PATH:~/Qt/5.10.0/clang_64/bin script: - cd build - make package -j8 artifacts: expire_in: 1 mos paths: - build/radiance-*.dmg package:ubuntu: stage: package tags: - ubuntu dependencies: - build:ubuntu before_script: - export PATH=$PATH:/opt/Qt/5.10.0/gcc_64/bin script: - cd build - make package -j8 artifacts: expire_in: 1 mos paths: - build/radiance-*.tar.gz package:windows: stage: package tags: - vs2017 - windows dependencies: - build:windows before_script: - set PATH=%PATH%;C:\Qt\5.10.0\msvc2017_64\bin script: - cd build - '"C:\Program Files\CMake\bin\cmake.exe" --build . --config Release --target PACKAGE' artifacts: expire_in: 1 mos paths: - build/radiance-*.exe