-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.travis.yml
41 lines (33 loc) · 1.09 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
language: python
dist: trusty
env:
global:
- EARTHIO_TEST_ENV=earth-test-env
- ELM_EXAMPLE_DATA_PATH=/tmp/elm-data
- EARTHIO_CHANNEL_STR=" -c ioam -c conda-forge -c scitools/label/dev -c elm -c elm/label/dev "
matrix:
- PYTHON=3.6 NUMPY=1.12
- PYTHON=3.5 NUMPY=1.11
- PYTHON=2.7 NUMPY=1.11
before_install:
- mkdir -p $ELM_EXAMPLE_DATA_PATH
- rm -rf $ELM_EXAMPLE_DATA_PATH/*
install:
- MAKE_MINICONDA=1 . build_earthio_env.sh
script:
- cd $EARTHIO_BUILD_DIR
- . activate $EARTHIO_TEST_ENV
- py.test -v earthio/tests
- rm -rf $ELM_EXAMPLE_DATA_PATH/*
notifications:
on_success: change
on_failure: always
flowdock: $FD_TOKEN
deploy:
- provider: script
script:
- conda install --name root anaconda-client && conda build $EARTHIO_CHANNEL_STR --output --python $PYTHON --numpy $NUMPY conda.recipe | xargs conda convert -p all -o _pkgs && find _pkgs -type f -name "*.tar.bz2" -exec anaconda -t $ANACONDA_UPLOAD_TOKEN upload --user $ANACONDA_UPLOAD_USER --label dev --force {} \+
on:
tags: false
all_branches: true
skip_cleanup: true