-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
39 lines (32 loc) · 1.15 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
# what language the build will be configured for
language: python
# specify what versions of python will be used
# note that all of the versions listed will be tried
matrix:
include:
- python: 3.7
# commands to prepare the conda install - download the latest conda
# and install it and add to path
before_install:
- wget -O miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
- conda update --yes conda
- source $(conda info --root)/etc/profile.d/conda.sh
# list of commands to run to setup the environment
install:
- conda env create -q -n test-environment python=$TRAVIS_PYTHON_VERSION --file environment.yml
- conda activate test-environment
# - pip install --no-deps keras-tuner
- conda install --yes coverage coveralls flake8
# a list of commands to run before the main script
before_script:
- flake8 phasIR
# the actual commands to run
script:
- coverage run -m unittest discover
# generate a coverage report to send to back to user
after_success:
- coverage report
- coveralls