forked from swimlane/swimlane-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (45 loc) · 1.79 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
sudo: false
language: python
python:
- '2.7'
- '3.5'
- '3.6'
install:
- pip install -U -r requirements.txt
- pip install -U -r test-requirements.txt
- pip install codacy-coverage
script: py.test -v --cov=swimlane --cov-report=xml
after_script: python-codacy-coverage -r coverage.xml
before_deploy: python offline_installer/build_installer.py
deploy:
- provider: releases
api_key:
secure: L81BsNWQWHfEhIn08msPm2EDo+PAbkUKRsL+Az1o7NqQgK5i8zC4L2rfEPt6QrAD5F8InxTLG8Z7tk7vH+KPSzn043S2pLtdYvNXqjjgYsT7FpmhsnSI9ib7mHWzjSYveM5RNduQN73w+iR4qrR5vdzUKVmYzkg+M5rJ+sg7kGv+g0jg7MgEZzbs2oR0OxMs+iTCzJDL20TFVNnXdhdNNLpb92Rw0sNgmbRFv4WWq2TKQTvL8h51WKg0O4W4NRZ5k1pOuyn6LLov5fwGsSp/vllDnZKZ6GlXoQMlHuYKl6dWVyFvrUXK8HVOM6cHR/RgHme/WSwsXdyCgae7U05P8HPNcMWSXPd+elwi/ys18BK6BCnZuaQLWJ9Gd/W6LkI5Q1dcuJrklPovpjpAkdYFI7dDYiXLJbH9aelKIrBjgTOnq+3y0Qk0XbdCB83LPRnKrqOTLq6LehQWeLkY543mfEURMFTgwE06QS577Gp8Oeu0MGAsL2SnX1ZLvPdRldOeRmGUl/kiAB0HD1Km5gK2K2GGh5yD83qdvuTo3eA31S9dwVgPlyD1QlfTRfdkzxmQzwzc5jkpABaSNc8Rspuz217vylLJ2kIoP9uHzsY0THfUfvnNQQj+sM+2caSQ7A9/AYL6zU66BsUYsvkQadyYpLbbkDQ5Kw+/eVEEuwkXj7s=
file_glob: true
file: dist/*offline-installer*
skip_cleanup: true
on:
tags: true
repo: swimlane/swimlane-python
- provider: s3
edge: true
region: $S3_REGION
access_key_id: $S3_ACCESS_KEY
secret_access_key: $S3_SECRET_KEY
bucket: $S3_BUCKET
upload_dir: python_driver/${TRAVIS_TAG:1}
local_dir: dist
skip_cleanup: true
on:
tags: true
repo: swimlane/swimlane-python
condition: $TRAVIS_PYTHON_VERSION = '2.7'
- provider: pypi
user: swimlane
distributions: sdist bdist_wheel
password: $PIP_PASSWORD
on:
tags: true
repo: swimlane/swimlane-python
# Package uploaded is universal for Python 2 and 3, just only push to pip during one version build cycle
condition: $TRAVIS_PYTHON_VERSION = '2.7'