|
1 | 1 | language: c++ |
| 2 | +# cache: ccache |
2 | 3 |
|
3 | 4 | matrix: |
4 | 5 | include: |
5 | 6 | - os: linux |
6 | 7 | dist: trusty |
7 | | - sudo: required |
8 | 8 | compiler: gcc |
9 | | - env: PYTHON_VERSION=3.4.3 OSPRAY_BUILD=OFF QT5=OFF |
| 9 | + env: PYTHON_VERSION=3.4.3 OSPRAY_BUILD=OFF QT5=ON |
10 | 10 | - os: linux |
11 | | - dist: trusty |
12 | | - sudo: required |
13 | | - compiler: clang |
14 | | - env: PYTHON_VERSION=3.4.3 OSPRAY_BUILD=OFF QT5=OFF |
| 11 | + dist: xenial |
| 12 | + compiler: gcc |
| 13 | + env: PYTHON_VERSION=3.5.6 OSPRAY_BUILD=OFF QT5=ON |
15 | 14 | - os: linux |
16 | 15 | dist: xenial |
17 | | - sudo: required |
18 | 16 | compiler: clang |
19 | | - env: PYTHON_VERSION=3.5.6 OSPRAY_BUILD=OFF QT5=OFF |
20 | | -# - os: linux |
21 | | -# dist: xenial |
22 | | -# compiler: clang |
23 | | -# env: PYTHON_VERSION=3.6.7 OSPRAY_BUILD=OFF QT5=OFF |
24 | | -# - os: linux |
25 | | -# dist: bionic |
26 | | -# compiler: clang |
27 | | -# env: PYTHON_VERSION=3.5.6 OSPRAY_BUILD=OFF QT5=OFF |
| 17 | + env: PYTHON_VERSION=3.5.6 OSPRAY_BUILD=OFF QT5=ON |
| 18 | + - os: linux |
| 19 | + dist: xenial |
| 20 | + compiler: gcc |
| 21 | + env: PYTHON_VERSION=3.6.7 OSPRAY_BUILD=OFF QT5=ON |
| 22 | + - os: linux |
| 23 | + dist: bionic |
| 24 | + compiler: gcc |
| 25 | + env: PYTHON_VERSION=3.5.6 OSPRAY_BUILD=OFF QT5=ON |
28 | 26 | - os: osx |
29 | 27 | osx_image: xcode7.3 |
30 | 28 | env: PYTHON_VERSION=3.5.6 OSPRAY_BUILD=OFF QT5=OFF |
@@ -59,19 +57,20 @@ before_install: |
59 | 57 |
|
60 | 58 | install: |
61 | 59 | - if [[ "$QT5" = "OFF" && "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install mesa-common-dev libgl1-mesa-dev mesa-utils-extra libglapi-mesa ninja-build libqt4-dev qt4-qmake libqt4-opengl-dev; fi |
62 | | -- if [[ "$QT5" = "ON" && "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install mesa-common-dev libgl1-mesa-dev mesa-utils-extra libglapi-mesa ninja-build qt5-qmake qtbase5-dev; fi |
| 60 | +- if [[ "$QT5" = "ON" && "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install mesa-common-dev libgl1-mesa-dev mesa-utils-extra libglapi-mesa ninja-build qt5-qmake qtbase5-dev libqt5opengl5-dev libqt5svg5-dev; fi |
63 | 61 | - if [[ "$QT5" = "OFF" && "$TRAVIS_OS_NAME" == "osx" ]]; then travis_wait 30 scripts/getQt4Mac.sh; fi |
64 | 62 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ninja; fi |
65 | 63 | # TODO: figure out/test ccache |
66 | | -#- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ccache; export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi |
| 64 | +# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ccache; export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi |
67 | 65 | # Verify qt 5.13, maybe not upgrade |
68 | 66 | - if [[ "$QT5" = "ON" && "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt || true; fi |
69 | 67 | - if [[ "$QT5" = "ON" && "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade qt || true; fi |
70 | 68 |
|
71 | 69 | script: |
72 | 70 | - cd bin |
73 | | - - cmake -GNinja -DTRAVIS_BUILD:BOOL=ON -DUSER_PYTHON_VERSION="${PYTHON_VERSION}" -DWITH_OSPRAY:BOOL=${OSPRAY_BUILD} -DQT5_BUILD:BOOL=${QT5} -DQt5_PATH=$(brew --prefix qt) ../Superbuild |
74 | | - - travis_wait 80 ninja |
| 71 | + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cmake -GNinja -DTRAVIS_BUILD:BOOL=ON -DUSER_PYTHON_VERSION="${PYTHON_VERSION}" -DWITH_OSPRAY:BOOL=${OSPRAY_BUILD} -DQT5_BUILD:BOOL=${QT5} -DQt5_PATH=$(brew --prefix qt) ../Superbuild; fi |
| 72 | + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cmake -GNinja -DTRAVIS_BUILD:BOOL=ON -DUSER_PYTHON_VERSION="${PYTHON_VERSION}" -DWITH_OSPRAY:BOOL=${OSPRAY_BUILD} -DQT5_BUILD:BOOL=${QT5} -DQt5_PATH=$(dpkg -L qtbase5-dev) ../Superbuild; fi |
| 73 | + - travis_wait 80 ninja # max is 50 minutes on public repository |
75 | 74 | - cd SCIRun |
76 | 75 | - ./Algorithm_Layer_Test |
77 | 76 | - ./Modules_Factory_Tests --gtest_filter=*HardCodedModuleFactoryTests* |
|
0 commit comments