forked from conda/conda-lock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
93 lines (81 loc) · 3.86 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
language: minimal
sudo: false
env:
global:
# Doctr deploy key for mariusvniekerk/conda-lock
- secure: "HRFByWj+4ZuMcnU2xQAEfly9rKgSpbbZYGvRr5OtgrPI/5vNOJ4rCw8ntBExDTjbUDjEydp3rjVnrMg264Vvpfu9PptwVGKA1diiN/Dh3+8sfmfdpd/RUQ+B23gQKwZ+FI0v8pXTk4awIcq0digehUKfZi45bg7Rwgfu54tNFqsLqz5RzHkolrSL3TOw4MR5r0kKzlF9TcSPw1VVWjozVHD87jK6EBYXa1XKL6JD22lz3Qic5dX+m0JwiNnXRI4ZuqRi7/7yuBhytauNfUdWzLRUgI/VtNmC/aVurh4axSh3zC90L8ZXgqk5OiwHCR2bO4DcZKS2yPbC8O/1vPtxwCjqp5D5K3zppC1YGFRhjlF9gepz3S1ULQTtpiihCinDFaaHJmez1jrWfCK/V9F4dRbKp9H/UNAFuTTZmAGQJcMIMo50jfM3EdPZdlAl2WpBWuqUYSwrVbBFkcAJtUnb5TCD/kH3V2xTxwG4aXnGLimRc3ewDBGwMWxkH4QIQJmtgEYJaJBU9TRUMBocXLnlZVKfhxYiqeBhAFzHvXgnSQWJcXeylPjyzoaeYLtx9WNq3xSVAfiFeIEKz3yph0n2BClVk7qGAKPJ4Q8f9Xq7AbWpdC5lJKMPcnJGrkAhY51h48n+8TYEKm778brM2tiB6T3cilkLHOjkZsvHPQY+R94="
matrix:
fast_finish: true
include:
- name: "python-3.6"
env: PY=3.6
- name: "python-3.7"
env: PY=3.7
- name: "python-3.8"
env: PY=3.8
- name: "coding_standards"
env: PY=3
- name: "tarball"
env: PY=3
- name: "docs"
env: PY=3
before_install:
# Install miniconda and create TEST env.
- |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
conda update --quiet conda
conda config --add channels conda-forge --force
conda config --set channel_priority strict
conda config --set safety_checks disabled
conda create --name TEST python=$PY --file requirements.txt --file requirements-dev.txt
source activate TEST
conda info --all
install:
- pip install -e . --no-deps --force-reinstall
script:
- if [[ $TRAVIS_JOB_NAME == python-* ]]; then
cp -r tests/ /tmp ;
pushd /tmp && pytest -n 2 -rxs --cov=conda-lock tests && popd ;
pushd /tmp/tests && conda-lock -f environment.yml -p linux-64 && popd;
fi
- if [[ $TRAVIS_JOB_NAME == 'tarball' ]]; then
python setup.py --version ;
pip wheel . -w dist --no-deps ;
check-manifest --verbose ;
twine check dist/* ;
fi
- if [[ $TRAVIS_JOB_NAME == 'coding_standards' ]]; then
pytest --flake8 -m flake8 ;
fi
- |
if [[ $TRAVIS_JOB_NAME == 'docs' ]]; then
set -e
pushd docs
make clean html linkcheck
popd
if [[ -z "$TRAVIS_TAG" ]]; then
python -m doctr deploy --build-tags --key-path github_deploy_key_mariusvniekerk_conda_lock.enc --built-docs docs/build/html dev
else
python -m doctr deploy --build-tags --key-path github_deploy_key_mariusvniekerk_conda_lock.enc --built-docs docs/build/html "version-$TRAVIS_TAG"
python -m doctr deploy --build-tags --key-path github_deploy_key_mariusvniekerk_conda_lock.enc --built-docs docs/build/html .
fi
fi
doctr:
require-master: true
sync: false
deploy:
skip_cleanup: true
provider: pypi
user: "__token__"
password:
secure: "xSuoEP1rl9VTNESImn9648GigabBNtYu7xL9uK41wXB0gnUHrsJn2ugSg7k4My+yg4QzQhWpOvWbwIp9RCt9L8VHsOBKdE5KZJ5pOeI+dZ18qrgp+3B+R0IvR6sdGLrD1M+YyU4PnmwHRcCvHi8lotWcg0IyIte3shjDgumd/kDiCj46NrOXt1qSmevtoUY2nl/BHNmYWwTmub32FtkpjkV3n1FTt3MrnarSv6xfysHxoKb071omqWxYfjnkFLCCXx62Vq+YhId/uBoj4OPHuLMFWVCj7DHtVopyq/3TTTnqr6WS3F7O7cJD1HJpc9Tsspaw0JaHta2zxqc82TdtgonQjl4QhWLz1V9QWJC8k1RCILSwSo80A1TgttslLCaFjhbpa24djbAuOYoNxC8lCp5sQR5OVx6tMudvQYyu+Tw8W5oLcDeWjKlmktyarRx9En/yV0A/E++FxHDLXQDEI8uhXd12SrtrkKZGsV9KeDRHVcbFOcLs3Hsj9OEr1PRUvkmE8si6BzlOmywJo9sFgRCAc9bgYO+QCUcOuLrqtyKCUrmZ7T6VhiqjdwwkrkDHJgx7f75SDerPiUnz8FTZyBlF3pLxq4RZndamuzt93KDnS7ubANOYtkWYfWgDeHuCoICogfTfbG0hnHpopQsKyj1xnufd0bNQBsvS2HgSUrc="
distributions: sdist bdist_wheel
upload_docs: false
on:
repo: mariusvniekerk/conda-lock
tags: true
all_branches: master
condition: '$TRAVIS_JOB_NAME == "tarball"'