-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
54 lines (46 loc) · 1.91 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
language: python
python:
- "3.6"
services:
- docker
stages:
- name: test
- name: deploy
before_install:
- sudo apt-get -y install python3-pyqt5 pyqt5-dev-tools
install:
- pip install markdown2
env:
- QGIS_RELEASE=3_4
- QGIS_RELEASE=3_10
# - QGIS_RELEASE=3_16
script:
- temp_dir=$(mktemp -d -t coordinator-build-XXXXXXXX)
- chmod +x scripts/{build.sh,docker_test_setup.sh,run_tests.sh}
- scripts/build.sh . ${temp_dir}
- scripts/run_tests.sh ${QGIS_RELEASE} ${temp_dir}
jobs:
include:
- stage: deploy
services:
env:
- QGIS_RELEASE=3_10
script:
- GIT_SHORT_HASH=$(git rev-parse --short HEAD)
- temp_dir=$(mktemp -d -t coordinator-build-XXXXXXXX)
- mkdir -pv ${temp_dir}/coordinator
- chmod +x scripts/build.sh
- scripts/build.sh . ${temp_dir}/coordinator
- export DEPLOY_FILENAME=coordinator-travis-${TRAVIS_TAG}-${GIT_SHORT_HASH}.zip
- echo ${DEPLOY_FILENAME}
- cp -a ${temp_dir}/coordinator .
- zip -rv ${DEPLOY_FILENAME} coordinator
deploy:
provider: releases
api_key:
secure: "A6xUCV4q1uTd07MsEUVfk7a+G2Cw8YySSxWjsjdTrHTD7BI/X7G2y/cil7iS5Zjrx7j+tzSQeLdhXLp/IfIAp8lnoPu8YBYhZYb+SO+zAWS2duYDUqpGJABx7I4dMsIOIbyFmRczcc8sCPjKuv/88OJ0qiUFU+A7ZaZdd9UVsBOnZHK7u/fmP3kRx42FBLw6NmV9+IjGLI8IU6GDpOLvYMJTyYYCU7UVLyj60IrEuGAImiZ/zdVibjYKcf6uof23gNXiE1pUhYx+P+vgJePjbmOF+DbNHz1HSB4e8YRfPRdXRdYdDn7OCnh55vd+4dTYJAKPg716njGj4dds9DxQ66LuXYHnttLDpVC6Q4pjzK7laHdcAyofX3Dsh+bAdmZKr4ol4jPdw+V7byswpI4opNesqWPX3uLSa6SVgwkkcW11vK2YJAWllNrkdTz7dy/Hklt1LmhlSmhRdIYVexAfkmXT2d1ya6/8Ug6x877M4+xZGXRLPuDthaf8g6Y6ABAAmvlooo+LMvKQ2YSzu/V+2AOE9QYxT8ge5d3tK7pXHDIEeExolemLa9V+V//j27B2gvI/J95w8hQjXWEtP3/o6sIwkpDzBzl/ACKkC9UUEe6BnvzrNV2TKnFW/oQ5aStbTWtEyjpIQP8eG5kFbY/dY7M6M9QSr18vsYSSUayYGFc="
file: ${DEPLOY_FILENAME}
skip_cleanup: true
draft: true
on:
tags: true