-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
52 lines (43 loc) · 1.5 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
49
50
51
52
language: minimal
dist: xenial
env:
matrix:
- PYTHON_VERSION="3.6" EXTRA_ARGS="--file requirements-py36.txt"
- PYTHON_VERSION="3.7" EXTRA_ARGS=""
- PYTHON_VERSION="3.8" EXTRA_ARGS=""
git:
# We need a deep clone so that we can compute the age of the files using their git history.
depth: 10000
install:
# Install miniconda
# -----------------
- echo "Installing miniconda"
- CONDA_BASE="http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
- wget --quiet "${CONDA_BASE}" -O miniconda.sh
- bash miniconda.sh -b -p ${HOME}/miniconda
- export PATH="${HOME}/miniconda/bin:$PATH"
# Create the testing environment
# ------------------------------
- echo "Configure conda and create test environment"
- conda config --set always_yes yes --set changeps1 no
- conda config --set show_channel_urls True
- conda config --add channels conda-forge
- conda update --quiet conda
- ENV_NAME="test-environment"
- conda create --quiet -n ${ENV_NAME} python=${PYTHON_VERSION} pip
- source activate ${ENV_NAME}
# Customise the testing environment
# ---------------------------------
- echo "Install forest dependencies"
- conda install --quiet -n ${ENV_NAME} --file requirements.txt --file requirements-dev.txt ${EXTRA_ARGS}
# Output debug info
# -----------------
- conda list -n ${ENV_NAME}
- conda list -n ${ENV_NAME} --explicit
- conda info -a
# Build the package
# -----------------
- pip install -e .
script:
- pytest
after_success: coveralls