forked from ANTsX/ANTs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (49 loc) · 1.17 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
# use containers
sudo: false
os:
- linux
- osx
language: cpp
cache: ccache
compiler:
- clang
- gcc
addons:
apt:
sources:
- george-edison55-precise-backports
packages:
- cmake
- cmake-data
before_install:
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
CMAKE_INSTALLER=install-cmake.sh && \
curl -sSL https://cmake.org/files/v3.11/cmake-3.11.3-Linux-x86_64.sh -o ${CMAKE_INSTALLER} && \
chmod +x ${CMAKE_INSTALLER} && \
sudo ./${CMAKE_INSTALLER} --prefix=/usr/local --skip-license
fi
- alias cmake=/usr/local/bin/cmake
- export PATH=/usr/local/bin/cmake/bin:/usr/local/bin:${PATH}
- |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
echo "need cmake 3.2" && \
brew update && \
brew install ccache && \
brew upgrade cmake && \
export PATH="/usr/local/opt/ccache/libexec:$PATH"
fi
- mkdir antsbin
- cd antsbin
script:
- |
cmake -DRUN_LONG_TESTS=OFF -DRUN_SHORT_TESTS=ON ./.. && \
make -j 2 && \
cd ANTS-build/ && \
make test
notifications:
email:
recipients: