-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
60 lines (47 loc) · 1.24 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
env:
global:
- SHARED=OFF
matrix:
notifications:
email: true
include:
- os: linux
dist: trusty
sudo: required
language: python
python: "3.6"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- cmake-data # to use cmake 3.0 or more recent
- cmake
- os: osx
osx_image: xcode8.3
before_install:
# ISSUE: we may want to use '/scripts/install-deps-ubuntu.sh' in the future.
# At this moment, travis-ci supports up to ubuntu 14.04 and this environment
# does not recognize sudo apt-get install libglfw3-dev
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-get install fftw3 fftw3-dev pkg-config;
fi
# scripts/install-deps-osx.sh works well
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew upgrade python;
fi
# for reference, display cmake and python version
- python -V
- cmake --version
# - pip install numpy
- pip3 install cython==0.25.2
- pip3 install pillow
- pip3 install numpy
- pip3 install scipy
- pip3 install imageio
script:
# Build commands
- python3 setup.py build_ext --inplace
- python3 setup.py install