forked from SECOORA/GUTILS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
101 lines (85 loc) · 4.02 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
language: python
sudo: false
dist: xenial
env:
global:
- secure: "GwGXiVnRyn2i+dKe4BeAh7IwvNBQR5glpUO06/KAgqnVQf5k3m463ORJdPfhdnyPjogkC1Qxk30LaxyqKxa64RsmRQCqRxWU4PAI3BBbWczb+NnspO9Lk5Z7hsSFYJktdQWLGdP6LcxAfqsrWuej8ROXOoIVUP1L3waotcdSfYjOK09754rlPOQtUrG0lDdXEMktqI96rnW7puPLuFdqkv4FgZ/lq0dWXdkuKMOL6FcxVLl7oWzr6dypuIa+DkIg2nCN598PmnWKsTP4tRXwqoHoP9kBNICimQhs8U0vHRkgPVMnyvok1Xodrdl3Q5chYYlYzpN8STK+fibcNHfhoGexndAwQJlsJ60bcivKN0JWrqoP+L4E97zGpmBpZ1kz+Q+M3XxyRnwl28Dth3sf19ktnEScaA5aRTf3VmcWLV3RwYdDgL3ViMlJr3QIQNW0+Y2W45s37G7YjVmnhFJPyApCshw92vX6Su49/ButOdjlYge0SbgkxEs1/WgMVvGxqZ70CvoTyMNmOr+hjGSwQ/rHWCU3YikIb/wEkYRAsPlDJpfZM7rnGmTbOeDHLCfggE5r7qZEHmjGX6LwwP44bozI3u6k5azVFl2f8a39HlW+vZtFnyMYLDQgVx3One9Uc9UTfgiygxlw4aOCJwd2H1ISUR57VBQsReEipLRrcmw="
matrix:
fast_finish: true
include:
- python: 3.6
env: TEST_TARGET=default
- python: 3.7
env: TEST_TARGET=default
- python: 3.7
env: TEST_TARGET=coding_standards
- python: 3.7
env: TEST_TARGET=docs
- python: 3.7
env: TEST_TARGET=makerelease
allow_failures:
- python: 3.7
env: TEST_TARGET=coding_standards
- python: 3.7
env: TEST_TARGET=docs
- python: 3.7
env: TEST_TARGET=makerelease
before_install:
# Install miniconda
# -----------------
- export CONDA_BASE=https://repo.continuum.io/miniconda/Miniconda3
- export MINICONDA_VERSION=latest
- wget ${CONDA_BASE}-${MINICONDA_VERSION}-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
# Setup conda
# ------------------------------------
- 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
# Add 3rd party channels
# ------------------------------------
- conda config --add channels axiom-data-science
- conda config --add channels conda-forge
# Create our environment
# ------------------------------------
- ENV_NAME='test-environment'
- conda create --quiet -n $ENV_NAME python=$TRAVIS_PYTHON_VERSION
- source activate $ENV_NAME
# Install testing requirements
# ------------------------------------
- conda install --file requirements.txt --file gutils/tests/requirements.txt
- conda list --export
install:
- python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install gutils-${version}.tar.gz && popd
script:
- set -e
- if [[ $TEST_TARGET == "default" ]]; then
py.test --disable-warnings -m "not long" ;
fi
- if [[ $TEST_TARGET == "coding_standards" ]]; then
py.test --disable-warnings -m flake8 --flake8 ;
fi
- if [[ $TEST_TARGET == 'docs' ]]; then
./docs/deploy.sh ;
fi
- if [[ $TEST_TARGET == 'makerelease' ]]; then
echo "Making a release..." ;
fi
after_success:
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ] && [ "$TEST_TARGET" == "makerelease" ]; then
conda install -n root conda-build anaconda-client ;
conda build conda-recipe;
anaconda -t $ANACONDA_TOKEN upload --force -u axiom-data-science $HOME/miniconda/**/gutils-*.tar.bz2 ;
fi
deploy:
provider: releases
api_key:
secure: 76K3ayTtDeEyEhtOftO3EnAOpg0uQ3vM+0rS7lr9O7otAbP3Kb4U37fPezqVMfFsjgy+J3EXqtpkIMMBj++Y+wRJV9NH1KXuNaro9OWjzXomvP3+O24qhDTwO5IWrqrApvTMaDUEcjysZ72PbY8KUysOp5xtsDAeNidJg7C5XOEITVeT2yqHKVmaVK+ndDEGtM71hzHCP5swx44fiqQ9LwWM2OI+OuozJHiBBE6uMgp/4OLX5vv61K71eADfsm9RyQe2+PqrBFfXUCWVSwPyuKBWM6YkjuSl6UpMJH5y+Q9iPP6sFZi31RfDbMG3s5rr5Qbi1+lIiKsVDfFWcU+O/jJqtfbgeNu/QsGL70Xu9iJhnioKE6QEDWbfwgeIsXhpXcd8VvTiW7HAWn244naFMcDvWhbXc28kv/NRWgh8rYI+gXg4m9ugK6XgrVc6ywY4/zRvWNpaarFciDiaYH0/rW3bmmiIVdS84FGiwYl/rjlkQtorvbo5PMUTa5VQDmZGICYHbFV5FEf1fyIHJCi+6k4yobGCg8KxaVJW3g6hONqdKX8rGmWlxCYHE+3eShNxGb/QndqP2XeorTeg2BCWTpqrvPeYWfqqfu9CSTzlDdaPNjxPp2qDiZpQ5y2gcBiT3wRXdY1ju+E3EBOYk8lE/XgdG7fAtJ5Yfs8lgwa8nZA=
file_glob: true
file: "$HOME/miniconda/**/gutils-*.tar.bz2"
skip_cleanup: true
on:
tags: true
condition: $TEST_TARGET == "makerelease"