Skip to content

Commit 40e4ea2

Browse files
authored
Merge branch 'master' into disappearing_scene
2 parents c8cede6 + 8440f1f commit 40e4ea2

File tree

2 files changed

+24
-21
lines changed

2 files changed

+24
-21
lines changed

.travis.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
language: c++
2+
# cache: ccache
23

34
matrix:
45
include:
56
- os: linux
67
dist: trusty
7-
sudo: required
88
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
1010
- 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
1514
- os: linux
1615
dist: xenial
17-
sudo: required
1816
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
2826
- os: osx
2927
osx_image: xcode7.3
3028
env: PYTHON_VERSION=3.5.6 OSPRAY_BUILD=OFF QT5=OFF
@@ -59,19 +57,20 @@ before_install:
5957

6058
install:
6159
- 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
6361
- if [[ "$QT5" = "OFF" && "$TRAVIS_OS_NAME" == "osx" ]]; then travis_wait 30 scripts/getQt4Mac.sh; fi
6462
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ninja; fi
6563
# 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
6765
# Verify qt 5.13, maybe not upgrade
6866
- if [[ "$QT5" = "ON" && "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt || true; fi
6967
- if [[ "$QT5" = "ON" && "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade qt || true; fi
7068

7169
script:
7270
- 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
7574
- cd SCIRun
7675
- ./Algorithm_Layer_Test
7776
- ./Modules_Factory_Tests --gtest_filter=*HardCodedModuleFactoryTests*

Superbuild/Superbuild.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ IF(NOT BUILD_HEADLESS)
147147
MESSAGE(FATAL_ERROR "QT ${QT_MIN_VERSION} or later is required for building the SCIRun GUI")
148148
ENDIF()
149149
ELSE()
150-
SET(QT_MIN_VERSION "5.12")
150+
IF(TRAVIS_BUILD)
151+
SET(QT_MIN_VERSION "5.4")
152+
ELSE()
153+
SET(QT_MIN_VERSION "5.13")
154+
ENDIF()
151155

152156
SET(Qt5_PATH "" CACHE PATH "Path to directory where Qt 5 is installed. Directory should contain lib and bin subdirectories.")
153157

0 commit comments

Comments
 (0)