forked from google/or-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (36 loc) · 1.1 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
sudo: required
dist: trusty
language: cpp
os:
- linux
- osx
compiler:
- clang
- gcc
before_install:
# apt-get only have swig 2.0.11
# work around https://github.com/travis-ci/travis-ci/issues/8363
- if [ $TRAVIS_OS_NAME == linux ]; then
cd /tmp/ && curl -s -J -O -k -L 'https://sourceforge.net/projects/swig/files/swig/swig-3.0.12/swig-3.0.12.tar.gz/download' &&
tar zxf swig-3.0.12.tar.gz && cd swig-3.0.12 &&
./configure --prefix $HOME/swig/ && make && make install &&
export PATH=${HOME}/swig/bin:${PATH} &&
cd $TRAVIS_BUILD_DIR;
pyenv global system 3.6;
fi
# work around https://github.com/travis-ci/travis-ci/issues/8552
- if [ $TRAVIS_OS_NAME == osx ]; then
sudo chown -R $(whoami) /usr/local;
brew update;
brew install swig;
brew install python3;
fi
- python3.6 -m pip install virtualenv wheel;
script:
- cmake --version
- swig -version
- python3.6 --version
- python3.6 -m pip --version
- cmake -H. -Bbuild
- cmake --build build --target all
- CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test