forked from rossumai/elisctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (57 loc) · 1.22 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
---
conditions: v1
stages:
- name: test
- name: deploy
if: tag IS present
sudo: required
dist: xenial
language: python
branches:
only:
- master
- /^v\d+\.\d+\.\d+$/
cache: pip
jobs:
fast_finish: true
include:
- python: 3.7
env: TOXENV=linting TOXCFG=tox.ini
stage: test
- python: 3.8
env: TOXENV=py38 TOXCFG=tox.ini
stage: test
- python: 3.7
env: TOXENV=py37 TOXCFG=tox.ini
stage: test
- python: 3.6
env: TOXENV=py36 TOXCFG=tox.ini
stage: test
- stage: deploy
python: 3.7
install:
- sudo apt-get update
- sudo apt-get -y install nsis
- pip install pynsist tabulate jsondiff openpyxl>=2.6.0
script: pynsist installer.cfg
deploy:
provider: releases
api_key: ${GITHUB_DEPLOY_TOKEN}
file: build/nsis/elisctl_2.9.0.exe
skip_cleanup: true
on:
tags: true
- stage: deploy
script: skip
python: 3.7
deploy:
provider: pypi
user: rossum
password: ${PYPI_DEPLOY_PASSWORD}
on:
tags: true
install:
- pip install tox-travis setuptools --upgrade
# command to run tests
script:
- tox -c ${TOXCFG}