-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
45 lines (39 loc) · 1.26 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
# Default language to use for running CI
language: python
# Sudo false allows Travis CI to run in a containerized environment (Docker)
# rather than a full VM
sudo: false
# Specifies the linux distribution to run the CI on
dist: trusty
# Testing matrix for any environment variables or specific versions
# of testing environments
matrix:
fast_finish: true
include:
- python: 3.6
env: TEST_TARGET=test
- python: 3.6
env: TEST_TARGET=lint
# Download of any lower level dependencies to install the software
before_install:
- |
URL="http://bit.ly/miniconda"
echo ""
if [ ! -f $HOME/miniconda/bin/conda ] ; then
echo "Fresh miniconda installation."
wget $URL -O miniconda.sh
rm -rf $HOME/miniconda
bash miniconda.sh -b -p $HOME/miniconda
fi
- export PATH="$HOME/miniconda/bin:$PATH"
- conda update conda --yes
- conda config --set show_channel_urls true
- conda config --add channels conda-forge --force
- conda create --yes -n TEST python=$TRAVIS_PYTHON_VERSION --file backend/requirements.txt --file backend/requirements-dev.txt
# Install our software
install:
- echo 'Install package here...'
# Script to run any sort of testing, deployments, linting, etc
script:
- ./infra/scripts/test.sh
- ./infra/scripts/lint.sh