forked from SALib/SALib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (46 loc) · 1.4 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
os: linux
language: python
dist: xenial
addons:
apt:
packages:
- git
- python-pip
notifications:
email: false
jobs:
allow_failures:
- env: DISTRIB="conda" PYTHON_VERSION="3.5" COVERAGE="false"
include:
- stage: "test"
name: "Test the SALib package"
env:
- DISTRIB="conda" PYTHON_VERSION="3.5" COVERAGE="false"
- DISTRIB="conda" PYTHON_VERSION="3.6" COVERAGE="true"
- DISTRIB="conda" PYTHON_VERSION="3.7" COVERAGE="false"
- DISTRIB="conda" PYTHON_VERSION="3.8" COVERAGE="false"
install:
- source tests/travis_install.sh
- pip install -r test-requirements.txt
script:
- python setup.py develop
- pytest
after_success:
- if [[ "$COVERAGE" == "true" ]]; then coveralls || echo "failed"; fi
- stage: "deploy"
name: "Deploy to PyPI"
if: tag =~ ^v
env: DISTRIB="conda" PYTHON_VERSION="3.6" COVERAGE="false"
install:
- source tests/travis_install.sh
- pip install -r requirements.txt
script: echo "Deploying to PyPI"
deploy:
provider: pypi
username: jdherman
password:
secure: KiUygZVHWMR2a+fk092xeHh8J2c61VGrgq4v1l3bq41MxcZO745H7CLJJ3rfqo+G5/pqy4/tm+q3p8fHhbUmwMcuSC3vjRN6WAYjuNPs0FMVXiIkMQtevv2LdVF1zVKFBdYTuNrfugtZ/GXh/ReCydjEBWTrTaNYeNM4ZRIaj0Q=
on:
tags: true
all_branches: true
cleanup: false