forked from conda-forge/whitenoise-feedstock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (31 loc) · 950 Bytes
/
.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
---
language: generic
matrix:
include:
- os: linux
env: PYTHON=3.6
- os: osx
env: PYTHON=3.6
env:
global:
- PACKAGE_NAME=whitenoise
- ANACONDA_USER="${TRAVIS_REPO_SLUG%/*}"
- PATH="$HOME/miniconda/bin:$PATH"
install:
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda && rm miniconda.sh
- conda install -y conda-build anaconda-client
- conda info -a
script:
- conda build --python $PYTHON .
deploy:
- provider: script
skip_cleanup: true
script: anaconda -t $CONDA_UPLOAD_TOKEN upload --user $ANACONDA_USER $HOME/miniconda/conda-bld/noarch/$PACKAGE_NAME-*.tar.bz2
on:
tags: true
condition: "$TRAVIS_OS_NAME = linux"