forked from ioos/thredds_crawler
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (40 loc) · 1.42 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
language: python
sudo: false
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
before_install:
# Install miniconda
# -----------------
- wget https://repo.continuum.io/miniconda/Miniconda3-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
# ------------------------------------
- conda config --set always_yes yes --set changeps1 no
- conda config --set show_channel_urls True
- conda config --add create_default_packages pip
- conda update --quiet conda
- ENV_NAME='test-environment'
- conda create --quiet -n $ENV_NAME python=$TRAVIS_PYTHON_VERSION
- source activate $ENV_NAME
install:
# Customise the testing environment
# ---------------------------------
- conda install -c conda-forge --file requirements.txt
- conda install -c conda-forge netCDF4 # For optional DAP file size calculation
- conda install -c conda-forge pytest
script:
- py.test -rx -v
- conda install -n root conda-build anaconda-client
- conda build conda-recipe --python $TRAVIS_PYTHON_VERSION
- conda install thredds_crawler --use-local
deploy:
provider: releases
api_key:
secure: XAx2aeocMQWn2acXcQ5LevsO977glpvPKOnk/2yafHTMd+VROVy8jZjsVTTwOEhzag2xOYgTyDYbX5PRT2uG2Uz/RPwJA0PbB+9NIiT1gvHZ/sfFEm7AfOQ257I2IL72ZGUuSZoa0I1pZnIFaew84FZGQ/jsNtfWZzo1veXI6A0=
on:
tags: true
repo: ioos/thredds_crawler