forked from wirepas/gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
70 lines (60 loc) · 1.3 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
language: python
python:
- "3.7"
services:
- docker
dist: "bionic"
addons:
apt:
packages:
- docker-ce
before_install:
- ./.ci/requirements.sh
- ./.ci/style-check.sh
- ./.ci/build-images.sh
- ./.ci/service-tests.sh
- ./.ci/fetch-artifacts.sh
install:
- pip3 install ./dist/${PYTHON_PKG_NAME}*linux_x86_64.whl
- pytest -s python_transport/tests
script:
- ./.ci/releases.sh
- source releases.env
deploy:
- provider: releases
api_key: ${GH_TOKEN}
file_glob: true
file:
- "${TRAVIS_BUILD_DIR}/dist/*"
- "${TRAVIS_BUILD_DIR}/${PYTHON_PKG_PATH}/CHANGELOG.md"
skip_cleanup: true
draft: ${GH_RELEASE_DRAFT} = true
name: ${GH_RELEASE_NAME}
body: ${GH_RELEASE_BODY}
prerelease: ${GH_RELEASE_CANDIDATE}
on:
tags: true
branch: master
- provider: script
script: bash .ci/deploy-pypi.sh ${TRAVIS_BUILD_DIR}/dist/${PYTHON_PKG_NAME}*
skip_cleanup: true
on:
tags: true
branch: master
- provider: script
script: bash .ci/deploy-docker.sh
skip_cleanup: true
on:
branch: master
- provider: script
script: bash .ci/deploy-docker.sh
skip_cleanup: true
on:
tags: true
branch: master
env:
global:
- PIPENV_VENV_IN_PROJECT=1
- PIPENV_IGNORE_VIRTUALENVS=1
- PYTHON_PKG_PATH=python_transport
- PYTHON_PKG_NAME=wirepas_gateway