forked from opencadc/cadctools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (42 loc) · 1.25 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
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false
before_install:
- sudo apt-get update
- sudo apt-get install -y fitsverify
install:
- pip install -U pip
- pip install twine
- for i in $(ls -d */); do cd $i; pip install -r dev_requirements.txt; cd ..; done
- pip install coveralls
script:
- for i in $(ls -d */); do
cd $i;
pytest --cov $i || exit 1;
if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then
flake8 -v $i || exit -1;
fi;
cd ..;
done
after_success:
# If coveralls.io is set up for this package, uncomment the line
# below and replace "packagename" with the name of your package.
# The coveragerc file may be customized as needed for your package.
# Run coverage for all Python versions but submit only once - 3.5
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then coverage combine $(ls -d */.coverage) || exit 1; coveralls; fi
jobs:
include:
- stage: publish
python: 3.4
deploy:
provider: script
script: ./.publish.sh
on:
tags: true
condition: ${PYPI_PASSWORD+x} = x
branch: master