forked from metoppv/improver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (38 loc) · 1.47 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
# Iris setup credit to github.com/SciTools/iris 07bbaf4.
#
version: ~> 1.0
language: python
python:
- 3.6.6
os: linux
git:
depth: 10000
env:
- CI_COVERAGE=yes
install:
# Install miniconda
# -----------------
- export CONDA_BASE=https://repo.continuum.io/miniconda/Miniconda
- wget ${CONDA_BASE}3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
# Create the basic testing environment
# ------------------------------------
# Explicitly add defaults channel, see https://github.com/conda/conda/issues/2675
- conda config --add channels defaults
- conda config --set always_yes yes --set changeps1 no
- conda config --set show_channel_urls True
- conda update --quiet conda
- ENV_NAME='test-environment'
- conda create --quiet -n $ENV_NAME python=$TRAVIS_PYTHON_VERSION
- source activate $ENV_NAME
# Download Iris 2.2 and all dependencies.
- conda install -c conda-forge iris=2.2 cftime=1.0.1 numpy=1.15.4
# Install our own extra dependencies (+ filelock for Iris test).
- conda install -c conda-forge astroid=2.1.0 filelock mock netcdf4=1.4.1 numpy=1.15.4 pycodestyle=2.3.1 pylint=2.1.1 pandas=0.23.4 python-stratify=0.1 sphinx=1.8.1 coverage pytest pytest-cov
- pip install codacy-coverage codecov clize sigtools
# List the name and version of all the dependencies within the conda environment.
- conda list
script:
- python -c "import iris"
- bin/improver-tests