forked from SCIInstitute/SCIRun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
108 lines (102 loc) · 3.58 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
language: c++
# cache: ccache
matrix:
include:
# - os: linux
# dist: trusty
# compiler: gcc
# env: PYTHON_VERSION=3.4.3 OSPRAY_BUILD=OFF
# - os: linux
# dist: xenial
# compiler: gcc
# env: PYTHON_VERSION=3.5.6 OSPRAY_BUILD=OFF
# - os: linux
# dist: xenial
# compiler: clang
# env: PYTHON_VERSION=3.5.6 OSPRAY_BUILD=OFF
- os: linux
dist: xenial
compiler: gcc
env: PYTHON_VERSION=3.6.7 OSPRAY_BUILD=OFF
# - os: linux
# dist: bionic
# compiler: gcc
# env: PYTHON_VERSION=3.5.6 OSPRAY_BUILD=OFF
# - os: linux
# dist: focal
# compiler: gcc
# env: PYTHON_VERSION=3.5.6 OSPRAY_BUILD=OFF
- os: linux
dist: focal
compiler: gcc
env: PYTHON_VERSION=3.6.7 OSPRAY_BUILD=OFF
- os: linux
dist: focal
compiler: gcc
env: PYTHON_VERSION=3.7.9 OSPRAY_BUILD=OFF
- os: linux
dist: focal
compiler: gcc
env: PYTHON_VERSION=3.8.7 OSPRAY_BUILD=OFF
# - os: linux
# dist: focal
# compiler: clang
# env: PYTHON_VERSION=3.5.6 OSPRAY_BUILD=OFF
- os: linux
dist: focal
compiler: clang
env: PYTHON_VERSION=3.6.7 OSPRAY_BUILD=OFF
- os: linux
dist: focal
compiler: clang
env: PYTHON_VERSION=3.7.9 OSPRAY_BUILD=OFF
- os: linux
dist: focal
compiler: clang
env: PYTHON_VERSION=3.8.7 OSPRAY_BUILD=OFF
- os: osx
osx_image: xcode10.3
env: PYTHON_VERSION=3.6.7 OSPRAY_BUILD=OFF
- os: osx
osx_image: xcode11.3
env: PYTHON_VERSION=3.6.7 OSPRAY_BUILD=OFF
- os: osx
osx_image: xcode11.3
env: PYTHON_VERSION=3.7.9 OSPRAY_BUILD=OFF
- os: osx
osx_image: xcode11.3
env: PYTHON_VERSION=3.8.7 OSPRAY_BUILD=OFF
- os: osx
osx_image: xcode12.2
env: PYTHON_VERSION=3.6.7 OSPRAY_BUILD=OFF
- os: osx
osx_image: xcode12.2
env: PYTHON_VERSION=3.7.9 OSPRAY_BUILD=OFF
- os: osx
osx_image: xcode12.2
env: PYTHON_VERSION=3.8.7 OSPRAY_BUILD=OFF
- os: osx
osx_image: xcode12.2
env: PYTHON_VERSION=3.9.1 OSPRAY_BUILD=OFF
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then date -u; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then uname -a; fi
install:
- if [[ "$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
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install ninja; fi
# TODO: figure out/test ccache
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ccache; export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
# Verify qt 5.13, maybe not upgrade
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install qt || true; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then HOMEBREW_NO_AUTO_UPDATE=1 brew upgrade qt || true; fi
script:
- cd bin
#-GNinja producing strange errors
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cmake -DTRAVIS_BUILD:BOOL=ON -DUSER_PYTHON_VERSION="${PYTHON_VERSION}" -DWITH_OSPRAY:BOOL=${OSPRAY_BUILD} -DQt5_PATH=$(brew --prefix qt) ../Superbuild; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cmake -DTRAVIS_BUILD:BOOL=ON -DUSER_PYTHON_VERSION="${PYTHON_VERSION}" -DWITH_OSPRAY:BOOL=${OSPRAY_BUILD} -DQt5_PATH=$(dpkg -L qtbase5-dev) ../Superbuild; fi
- travis_wait 80 make -j4
- cd SCIRun
- ./Algorithm_Layer_Test
- ./Modules_Factory_Tests --gtest_filter=*HardCodedModuleFactoryTests*
notifications:
slack: sciinstitute:lZnpQQXNd4Io5iGDPQDpJmI1