-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
62 lines (57 loc) · 1.6 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
dist: bionic
language: cpp
jobs:
include:
- name: linux-gcc
os: linux
compiler: gcc
- name: linux-python
os: linux
compiler: gcc
env: CONFIG="--enable-python-bindings --disable-mpi" PYTHON=2
- name: linux-python3
os: linux
compiler: gcc
env: CONFIG="--enable-python-bindings --disable-mpi --with-python=python3" PYTHON=3
- name: linux-clang
os: linux
compiler: clang
- name: osx
os: osx
compiler: clang
env: CONFIG="CXXFLAGS=-std=c++11"
before_install:
- |
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew update
brew upgrade python # upgrade to Python 3
python -m pip install numpy scipy matplotlib
brew install fftw
brew install openblas
brew install boost
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
python -c "import numpy"
else
sudo apt-get install -y fftw3-dev
sudo apt-get install -y libopenblas-dev
if [ "$PYTHON" = "2" ]; then
sudo apt-get install -y python-pip python-tk
sudo python -m pip install numpy scipy matplotlib
elif [ "$PYTHON" = "3" ]; then
sudo apt-get install -y python3-pip python3-tk
sudo python3 -m pip install numpy scipy matplotlib
fi
sudo apt-get install -y libboost-python-dev
sudo apt-get install -y qmtest
fi
script:
- ./autogen.sh
- ./configure $CONFIG
- make
- |
if [ "$TRAVIS_OS_NAME" != osx -a "$PYTHON" != 3 ]; then
# unfortunately qmtest only supports Python 2
make check
fi
notifications:
irc: "irc.oftc.net#openvsip"