-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
39 lines (34 loc) · 1.05 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
language: python
matrix:
include:
- os: linux
sudo: required
python: 3.5
cache: pip
- os: linux
sudo: required
python: 3.6
cache: pip
# Use generic language for osx
# See https://github.com/travis-ci/travis-ci/issues/2312
- os: osx
language: generic
cache:
directories:
- /Users/travis/Library/Caches/pip
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libopenblas-dev liblapack-dev python3-dev ; fi
# Install packages
install:
- pip install numpy scipy pandas pytest tensorflow keras pybind11
- pip install -r requirements.txt
- python setup.py build
- python setup.py install
# Run test
script:
- cd tests
- pytest test.py -v