forked from opencadc/vostools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml_old
50 lines (44 loc) · 1.3 KB
/
.travis.yml_old
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
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
- 3.7
- 3.8
# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false
install:
- pip install -U pip
- if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then pip install twine; fi
- 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.7' ]]; 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.7' ]]; then coverage combine $(ls -d */.coverage) || exit 1; coveralls; fi
jobs:
include:
#- stage: intTest
#python: 3.7
#script: ./.intTest
- stage: publish
python: 3.7
deploy:
provider: script
script: ./.publish.sh
on:
tags: true
condition: ${PYPI_PASSWORD+x} = x
branch: master