Skip to content

Commit 0aee404

Browse files
committed
Start to .travis.yml
based on the CodeModel travis file
1 parent 9e24afb commit 0aee404

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.travis.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
version: ~> 1.0
2+
3+
language: python
4+
5+
notifications:
6+
webhooks: https://coveralls.io/webhook
7+
8+
branches:
9+
only:
10+
- master
11+
- stable
12+
- docs
13+
- /^v\d+(\.\d+)+/
14+
15+
env:
16+
global:
17+
- CANONICAL_PYTHON="3.8"
18+
- CODECLIMATE=""
19+
- TWINE_USERNAME="dwhswenson"
20+
# TWINE_PASSWORD
21+
# AUTORELEASE_TOKEN
22+
matrix:
23+
- CONDA_PY=3.6
24+
- CONDA_PY=3.7
25+
- CONDA_PY=3.8
26+
27+
before_install:
28+
- echo "before install"
29+
- git fetch --tags
30+
31+
install:
32+
# we use conda to manage Python versions, but all the install is pip
33+
- source ./devtools/miniconda_install.sh
34+
- conda create --yes -n ops-cli-py${CONDA_PY} python=$CONDA_PY
35+
- source activate ops-cli-py${CONDA_PY}
36+
- pip install -e .
37+
- pip install -r ./devtools/tests_require.txt
38+
- pip list
39+
40+
script:
41+
- python -c "import paths_cli"
42+
#- python autorelease_check.py --branch ${TRAVIS_BRANCH} --event ${TRAVIS_EVENT_TYPE} #--allow-patch-skip # allow-patch-skip if there was a testpypi problem
43+
- py.test -vv --cov=paths_cli --cov-report xml:cov.xml
44+
45+
after_success:
46+
- COVERALLS_PARALLEL=true coveralls
47+
48+
import:
49+
- dwhswenson/autorelease:autorelease-travis.yml@v0.1.2

0 commit comments

Comments
 (0)