forked from executablebooks/jupyter-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (46 loc) · 1.71 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
language: python
cache: pip
matrix:
include:
- python: 3.7
env: TEST_TYPE="pre-commit"
- python: 3.6
env: TEST_TYPE="pytest"
- python: 3.7
env: TEST_TYPE="pytest" PYPI_DEPLOY=true
- python: 3.8
env: TEST_TYPE="pytest"
install:
- pip install --upgrade pip wheel setuptools
- |
if [[ "$TEST_TYPE" == "pre-commit" ]]; then
pip install -e .[cli,code_style]
fi
- |
if [[ "$TEST_TYPE" == "pytest" ]]; then
pip install -e .[cli,testing]
pip install coveralls
fi
script:
- |
if [[ "$TEST_TYPE" == "pytest" ]]; then
pytest -v --cov=jupyter_cache --cov-report=
fi
- |
if [[ "$TEST_TYPE" == "pre-commit" ]]; then
pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
fi
after_success:
- |
if [[ "$TEST_TYPE" == "pytest" ]]; then
coveralls
fi
deploy:
- provider: pypi
distributions: "sdist bdist_wheel"
user: cjsewell
password:
secure: sTAhmXxRw3QdL9WS33dxEXaJVJSIk208X35/3tSQycLLBk/VAgHTTPGeOKBnZ8dY18iwMpALrmI9FX7QhCVLBI5RO7U4AkrjFtVnWtvyKPaC1OBUDYh4OKCyUlBhHx2ko3HdH/bQwjE57/TgbgC7cjIRnEIMGrLnL3623imnpr+/86jL9rsachEjoN6pswaHYkPwAChDOWUWpJeYkH06HgQy9AOHkuJNDvTho/RWNGv3lCT8rbvAjLfgQgUCoxl1iQOrL/FTLj2mt4FIk8I2203Kra9KeFXkz2X32R/sWHFOkB++5KoYB41r4J4lCzU2cBhgucrIwIrO3QW3Kw44CYbzK5q+BjbXnazNu7H6sqN7SjCjwr+E3ib17mjcB87cTgwCqxQeiRrX4GMqngC/xsXPgK6XdhQzihpyKKzNpS5BK/XtvANldzsYvYPKyPAbbWqnpwb2+aEAq00a2gUTCg5ZmWiEm8Pu8jRp2OG9C5Uk1ymP7ZCcL0NDCoSSKRC8oOTx1ERQjL4xN/rNk85ZXu5lME0cGrWU9ZRxOYi/GFJAzGD2Fi52D1oO1BgxXM3hMI1HB1xiMwRTbmxOMbnFz2Ewzi/RAzGtslCg9iLbqphjAbkGyOzkZDhptEn2eOx+ThcFP9sW4cOocrPcySSjKFfrtJWaWDNUBX+nkcAFsDY=
on:
tags: true
condition: $PYPI_DEPLOY = true