-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
50 lines (46 loc) · 2 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
matrix:
include:
- os: osx
language: generic
- os: linux
language: python
python:
- "3.5"
- os: linux
language: python
python:
- "3.6"
# osx deps
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew uninstall --ignore-dependencies python; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install freetype; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link --overwrite freetype; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libpng; fi
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran libfreetype6-dev libpng-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip3 install --upgrade numpy; fi
- pip3 install --upgrade cython
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip3 install --upgrade pywavelets; fi
- python3 setup.py install
- pip3 install codecov
- pip3 install --upgrade --force-reinstall pyqt5
- cd ..
- git clone --depth=50 --branch=master https://github.com/populse/populse_db.git
- cd populse_db
- pip3 install -e .[postgres]
- cd ..
- cd populse_sandbox
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PYTHONPATH="$PYTHONPATH:/home/travis/build/populse/populse_mia/python/populse_mia/src/modules"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PYTHONPATH="$PYTHONPATH:/Users/travis/build/populse/populse_mia/python/populse_mia/src/modules"; fi
- "export DISPLAY=:99.0"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ( sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )& fi
- sleep 3 # give xvfb some time to start
script:
- python3 -V
- python3 ./python/populse_mia/src/scripts/test.py -v
- coverage run ./python/populse_mia/src/scripts/test.py
after_success:
- codecov