-
Notifications
You must be signed in to change notification settings - Fork 30
/
.travis.yml
127 lines (122 loc) · 3.94 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
matrix:
include:
- language: python
name: qgis:latest
python: 3.6
dist: xenial
sudo: true
branches:
only:
- master-qgis3
- dev-qgis3
services:
- docker
before_install:
- pip install flake8 mypy
- flake8 plugin
install:
- cd docker && docker-compose build --build-arg QGIS_TAG=latest && docker-compose up -d
- sleep 10 # This is required to allow xvfb to start
script:
- docker exec -it qgis3 sh -c "qgis_testrunner.sh tests_directory"
after_success:
- bash <(curl -s https://codecov.io/bash)
# - bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN
before_deploy:
- cd $TRAVIS_BUILD_DIR
- mkdir vector_tiles_reader
- rsync -r -R --exclude-from=.rsync-exclude ext-libs/ plugin/ sample_data/ metadata.txt README.md *.py vector_tiles_reader
- zip -r Vector-Tiles-Reader-${TRAVIS_TAG}.zip vector_tiles_reader
- rm -rf vector_tiles_reader
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: Vector-Tiles-Reader-${TRAVIS_TAG}.zip
skip_cleanup: true
draft: true
on:
tags: true
branch: master-qgis3
- language: python
name: qgis:release-3_6
python: 3.6
dist: xenial
sudo: true
branches:
only:
- master-qgis3
- dev-qgis3
services:
- docker
before_install:
- pip install flake8 mypy
- flake8 plugin
install:
- cd docker && docker-compose build --build-arg QGIS_TAG=release-3_6 && docker-compose up -d
- sleep 10 # This is required to allow xvfb to start
script:
- docker exec -it qgis3 sh -c "qgis_testrunner.sh tests_directory"
-
- language: python
name: qgis:release-3_4
python: 3.6
dist: xenial
sudo: true
branches:
only:
- master-qgis3
- dev-qgis3
services:
- docker
before_install:
- pip install flake8 mypy
- flake8 plugin
install:
- cd docker && docker-compose build --build-arg QGIS_TAG=release-3_4 && docker-compose up -d
- sleep 10 # This is required to allow xvfb to start
script:
- docker exec -it qgis3 sh -c "qgis_testrunner.sh tests_directory"
- language: cpp
branches:
only:
- dev-qgis3
os:
- linux
compiler:
- gcc
- clang
before_script:
- sudo apt-get update -qq
- sudo apt-get install gcc-multilib g++-multilib -y
script:
- git clone https://github.com/mapbox/protozero.git ../protozero
- git clone https://github.com/mapbox/vtzero.git ../vtzero
- cd ../vtzero
- git submodule update --init
- cd $TRAVIS_BUILD_DIR/ext-libs/pbf2geojson
- sudo rm *.so && sudo rm *.dll && cd ../..
- make linux
- cd ..
- docker run --rm dockcross/windows-x64 > ./dockcross-windows-x64 && chmod +x ./dockcross-windows-x64
- docker run --rm dockcross/windows-x86 > ./dockcross-windows-x86 && chmod +x ./dockcross-windows-x86
- ./dockcross-windows-x64 sh -c "cd Vector-Tiles-Reader-QGIS-Plugin && make windows64_dockcross"
- ./dockcross-windows-x86 sh -c "cd Vector-Tiles-Reader-QGIS-Plugin && make windows32_dockcross"
- language: cpp
branches:
only:
- dev-qgis3
os:
- osx
compiler:
- gcc
script:
- git clone https://github.com/mapbox/protozero.git ../protozero
- git clone https://github.com/mapbox/vtzero.git ../vtzero
- cd ../vtzero
- git submodule update --init
- cd $TRAVIS_BUILD_DIR/ext-libs/pbf2geojson
- sudo rm *.so && sudo rm *.dll && cd ../..
- make osx
notifications:
on_success: never # default: change
on_failure: always # default: always