-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy path.travis.yml
30 lines (30 loc) · 1.04 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
language: python
env:
global:
# pypi api token split in 2 because of travisci issue https://travis-ci.community/t/travis-encrypt-data-too-large-for-pypi-tokens-with-older-repos/5792/5
secure: "CFbLgwgs4M0yROBMl0vrUF3ELkR85CRQm1s9IzOAroHFxLqBPHsm7ofVzmS+1pYqTTJunJiVUD0655AdnlbyO9x8T0exlcDowlwgTnAMozSlJo72B1mjdqZW26+VIgGcPiZiB3iRBJcOiONOPKo04SzS4EG8jdP+JBc2IwS6VtQ="
secure: "j8x37uSIozGhdCEyWXonOIK9MDalFwxfhavUQAnEh4mtgfGshntqs7JkE0gemt+HPAd3jigNQijm/a+8IOjhfuGZPxd/+vhyL7/fT16F3TAOL2o2N+Vz9m9ybxKuO+JFgv4QJOCZ5KGumz2sVfogFiT0Nr4+ow/XU8nhVAAGnSY="
python:
- '2.7'
- '3.5'
- '3.6'
- '3.7'
before_install:
- export BOTO_CONFIG=/dev/null
install:
- python setup.py install
- pip freeze
before_script:
- pip install flake8 && flake8 kale example --max-line-length 100 --ignore=E731,E402
script:
- python setup.py test
deploy:
provider: pypi
user: __token__
password:
secure: $TOKEN_1$TOKEN_2
on:
tags: true
all_branches: true
condition: "$TRAVIS_TAG =~ ^version-[0-9]+.[0-9]+.[0-9]+[a-z]?$"
distributions: sdist bdist_wheel