forked from xonsh/xonsh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (71 loc) · 2.17 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
language: python
env:
global:
- secure: "pvQHCsdcIRjwNvsBrZxP8cZWEwug0+PLg1T8841ZLkMdCaO3YheqmxF1xGjAqty6hLppz6vX1LFEKmPjKurLL0/i+be6MhT8/ZikFpSan7TdNUqISxeFx31ls+QpuFKzCV7ZEx7C1ms8LPWEGmzMMN6bCtOBVtGznD9KKWZmLlA="
matrix:
include:
# Travis does not yet support Python 3.7 on Linux
# uncomment the following when it does
#- os: linux
# python: 3.7
# env:
# - MINICONDA_OS="Linux"
# - CI=true
# - TRAVIS=true
- os: linux
python: 3.6
env:
- MINICONDA_OS="Linux"
- BUILD_DOCS=true
- os: linux
python: "nightly"
- os: linux
python: "pypy3"
env:
- BUILD_DOCS=false
- os: osx
language: generic
env: PYTHON="3.6" MINICONDA_OS="MacOSX"
- os: osx
language: generic
env: PYTHON="3.7" MINICONDA_OS="MacOSX"
allow_failures:
- python: "nightly"
- python: "pypy3"
before_install:
- if [[ ! ("$TRAVIS_PYTHON_VERSION" == "nightly" || "$TRAVIS_PYTHON_VERSION" == "3.6-dev") && ! $BUILD_DOCS ]]; then
URL="https://repo.continuum.io/miniconda/Miniconda3-latest-${MINICONDA_OS}-x86_64.sh";
wget "${URL}" -O miniconda.sh;
bash miniconda.sh -b -p $HOME/miniconda;
export PATH="$HOME/miniconda/bin:$PATH";
hash -r;
conda config --set always_yes yes --set changeps1 no;
conda update -q conda;
conda info -a;
fi
install:
- if [[ $BUILD_DOCS = true ]]; then
pip install --upgrade -r requirements-docs.txt;
python setup.py install;
else
pip install --upgrade -r requirements-tests.txt;
fi
before_script:
- rvm get head || true
script:
- set -ex
- if [[ $BUILD_DOCS = true ]]; then
cd docs;
make html;
cd ..;
doctr deploy --deploy-repo xonsh/xonsh-docs dev;
git checkout $(git describe --tags `git rev-list --tags --max-count=1`);
git clean -fdx;
pip install --upgrade --force-reinstall .;
cd docs;
make clean html;
cd ..;
doctr deploy --deploy-repo xonsh/xonsh-docs .;
else
py.test --timeout=10;
fi