-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
48 lines (41 loc) · 1.41 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
# 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
# what branches should be evaluated
branches:
except:
# Check ALL? Decide as work progresses...
# 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-py37_4.10.3-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
# - conda activate test-environment
# - conda install install -c pozzorg hardy
# - pip install --no-deps keras-tuner
- pip install .
# - conda install --yes coverage coveralls flake8
- pip install coverage coveralls flake8
# - python -c "import pandas"
# a list of commands to run before the main script
before_script:
# - conda activate test_environment
- flake8 hardy
# 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