-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
99 lines (93 loc) · 5.04 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
matrix:
include:
- os: linux
dist: xenial
language: generic
env:
- ROBERTO_CONDA_PINNING="python 3.6"
- ROBERTO_DEPLOY_BINARY=1
- os: linux
dist: xenial
language: generic
env:
- ROBERTO_CONDA_PINNING="python 3.7"
- ROBERTO_DEPLOY_NOARCH=1
- ROBERTO_DEPLOY_BINARY=1
- os: osx
osx_image: xcode9.4
language: generic
env:
- ROBERTO_CONDA_PINNING="python 3.6"
- ROBERTO_DEPLOY_BINARY=1
- os: osx
osx_image: xcode9.4
language: generic
env:
- ROBERTO_CONDA_PINNING="python 3.7"
- ROBERTO_DEPLOY_BINARY=1
env:
global:
# Install conda in a *sub*directory of a
# directory cached by travis.
- ROBERTO_CONDA_BASE_PATH=${HOME}/cache/miniconda3
# Tell Roberto to upload coverage results
- ROBERTO_UPLOAD_COVERAGE=1
# Build conda packages outside the
# miniconda tree, to avoid caching.
- CONDA_BLD_PATH=${HOME}/conda-bld
# Tell roberto which branch is being
# merged into, in case of a PR.
- ROBERTO_GIT_MERGE_BRANCH=${TRAVIS_BRANCH}
# GITHUB_TOKEN
# yamllint disable-line rule:line-length
- secure: "AKQxh+fE4pnnO1B2jWWbya68ZpAWhT7WydO4OP1dwQQPhmXpKreLX+onIMsGbBKt5DjD3OBbh7GPn/FaHuZIZyXxvc/EvQDUh3nqpMFZRuyYVDHZsVSsdXuVuC/NyQfUDAJ9B7QoYqL4tgngzKio/GjsF1BrqNTd6GeE5ZcvHSvub7HgRskkhhfoLiO04uUcmFskdLE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DJg0Z+wO53o8b+X/f2P5E0bntt/HYOj2S6cI6wbOpdds4LFs4w33Ga46qswe0aR9Z1H8ScQA8G0FZwSqa28GlyrtAT6c70VsXLXp25TcQcqIX98cNuwwCM/rKxPw70VlOFl7Xk="
# TWINE_PASSWORDhttps://anaconda.org/account/logout
# yamllint disable-line rule:line-length
- secure: "cVxNyCpJcILwpI1o6GP1BqcI/9W+9dhp4dGJZ8tAw5LJ5UU4psqAhd4iing7Vgqfn3Tvbew8zOUqEeDkAGypqZIx/ALbSBn09obFUcEcBP5fjSmFNN05S6QI558KUUi8sj59bYIrlRYXiDBYKLpje8QbvDA/LghACK3LCtOEIqO7rs/lDM71I2GXBGMWa4rOa6eh3YNDK5Jkp1XmdCmMKlJeJCQqIlEB3rl3vE8MwZNBTWza9M6Ti4Jm81pQ5SPS107vhjq+TT6d/pjko1GJQFsK+8J484IjLd8nGDijS4iIzsxbZPu+Y16x0UoXQe9LFfYnJV3q+u4xJSAxJtOybEKRClvzb4n6Og/ywXrsx7sGUrdoa0JYnUAO1VyQGoiTrK/R9yPPEGcYFv7GPE2TyAQb3TXwddNu5JyZoz2czDtgEeKWO+CTwF0dEKkVLludCs5WkIGk3OMtHxX5C1DnYJjQ9JUt5Y4vlcvL2wLdH7i/cJ5XtVkwTRyZtOMIOUQ608YAJW4S0HtObzbs3Xs/v4geDBrOTRRwfd6LKWIR6IHaR4Lwjax3nSOcyydUgGrSGT6/6ylj9LKp7uACjxIhOCIJvDJtIBgwxqPLVYpL+Eb2obAtUVa7XUhTVTfBIHTy97u1SztZbLYo5SxjCNuPAiZnkvZm2QvlPd6U3fBxaQ4="
- TWINE_USERNAME: theochem
cache:
# More time is needed for caching due to
# the sheer size of the conda env.
timeout: 1000
directories:
# Everything under the cache directory will be archived and made
# available in subsequent builds to speed them up.
- ${HOME}/cache
install:
# Disable deployment when TRAVIS_TAG is not set.
# This avoids duplicate deployments.
- if [[ -z $TRAVIS_TAG ]]; then
export ROBERTO_DEPLOY_BINARY=0 ROBERTO_DEPLOY_NOARCH=0;
fi
# Get a basic python 3 with pip to run roberto
- python3 --version
- wget --no-clobber -O ${HOME}/cache/get-pip.py
https://bootstrap.pypa.io/get-pip.py || true
- python3 ${HOME}/cache/get-pip.py --user
# To avoid surprises, constrain the major
# version number of roberto.
- python3 -m pip install 'roberto<2.0.0' --user
script:
# Instead of simply calling `rob`, do something that
# always works on OSX too. When testing a pull request,
# it is sufficient to run only the quality checks on
# the in-place build, which should catch 99% of the
# problems while it is considerably faster.
- if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
python3 -m roberto robot;
else
python3 -m roberto;
fi
before_cache:
# Remove things that are not needed in subsequent builds.
- rm -rf ${ROBERTO_CONDA_BASE_PATH}/conda-bld
- rm -rf ${ROBERTO_CONDA_BASE_PATH}/locks
- rm -rf ${ROBERTO_CONDA_BASE_PATH}/pkgs
- rm -rf ${ROBERTO_CONDA_BASE_PATH}/var
- rm -rf ${ROBERTO_CONDA_BASE_PATH}/envs/*/conda-bld
- rm -rf ${ROBERTO_CONDA_BASE_PATH}/envs/*/locks
- rm -rf ${ROBERTO_CONDA_BASE_PATH}/envs/*/pkgs
- rm -rf ${ROBERTO_CONDA_BASE_PATH}/envs/*/var