-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
53 lines (44 loc) · 989 Bytes
/
.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
51
52
53
language: python
sudo: required
dist: xenial
python:
- 3.5
- 3.6
- 3.7
- 3.8
- 3.9-dev
install:
- pip install -U poetry
- poetry install
jobs:
include:
- stage: check
script: flake8 --ignore E501 openpyscad
script:
- nosetests --with-coverage --cover-package=openpyscad
after_success:
- coveralls
before_deploy:
- git config --local user.name "taxpon"
- git config --local user.email "taxpon@gmail.com"
- poetry version minor
- export RELEASE_VERSION=$(poetry version | cut -d ' ' -f 2)
- git tag -a "$RELEASE_VERSION" -m "$RELEASE_VERSION"
deploy:
provider: script
script: poetry publish -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} --build
skip_cleanup: true
on:
branch: master
after_deploy:
- git checkout develop
- git commit -a -m "Bump version"
- git push origin develop
- git push origin --tags
stages:
- check
- test
- name: deploy
if: branch = master AND type != pull_request
notifications:
email: false