forked from Ouranosinc/pavics-sdi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (47 loc) · 1.69 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
53
language: generic
dist: xenial
branches:
only:
- master
matrix:
fast_finish: true
include:
- env:
- CONDA_BINARY="Miniconda3-latest-Linux-x86_64.sh"
- PYTHON_BUILD=3.7
- GRAB=wget
os: linux
name: "Python3.7 - Linux"
- env:
- CONDA_BINARY="Miniconda3-latest-Linux-x86_64.sh"
- PYTHON_BUILD=3.6
- GRAB=wget
os: linux
name: "Python3.6 - Linux"
- env:
- CONDA_BINARY="Miniconda3-latest-MacOSX-x86_64.sh"
- PYTHON_BUILD=3.6
- GRAB='curl --output output-sanitize.cfg'
os: osx
name: "Python3.6 - Darwin (macOS)"
# before_install will simply setup a conda environment for installing python packages, if you
# have project dependencies it's usually recommended to go this route
before_install:
- wget "http://repo.continuum.io/miniconda/$CONDA_BINARY" -O miniconda.sh
- chmod +x miniconda.sh
- bash ./miniconda.sh -b
- export PATH=$HOME/miniconda3/bin:$PATH
- source activate
- conda update --yes conda
install:
- conda install pip
- pip install conda-merge
- conda-merge environment.yml environment-dev.yml > merged_env.yml
- conda create --yes -n pavics-sdi python=$PYTHON_BUILD
- conda-env update -n pavics-sdi --file merged_env.yml
- source activate pavics-sdi
- cd docs
- bash -c "$GRAB https://raw.githubusercontent.com/Ouranosinc/PAVICS-e2e-workflow-tests/master/notebooks/output-sanitize.cfg"
script:
- make clean html
- pytest --nbval --sanitize-with output-sanitize.cfg -k 'not esgf-dap' source/notebooks # regex_patterns.cfg