-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
41 lines (36 loc) · 1.21 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
language: c
env:
global: PYTHON_VERSION=3.6
TRAVIS_PYTHON_VERSION=3.6
matrix:
include:
- os: osx # https://github.com/travis-ci/travis-ci/issues/2312
python: 3.6
sudo: false
env: CONDA_OS="MacOSX"
services: xvfb # https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-xvfb-to-run-tests-that-require-a-gui
- os: linux
python: 3.6
sudo: false
env: CONDA_OS="Linux"
services: xvfb
# Setup anaconda
# https://gist.github.com/dan-blanchard/7045057
before_install:
- wget -q http://repo.continuum.io/miniconda/Miniconda3-latest-$CONDA_OS-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
- conda update --yes -n base conda
- conda create -n condaenv --yes numpy scipy matplotlib pandas requests h5py pytest
- . $HOME/miniconda/etc/profile.d/conda.sh
- conda activate condaenv
- pip -q install pytest-benchmark tensorflow==2.2 tensorflow-probability==0.10.1
- python --version
- conda list
install:
- python setup.py develop
before_script:
- python -c "import nems0.recording; nems0.recording.get_demo_recordings('recordings')"
script:
- pytest tests