-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
47 lines (47 loc) · 4.01 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
sudo: required
addons:
hosts:
- boundless-test
services:
- docker
env:
global:
- PLUGIN_NAME=what3words
- secure: kwkGudPxVTnr0Tq1qivJ03+31W/uq9962m468mtSMPcKjc/mKZE3Oq1T8NGuZ2oBL4i7dFU2BciXutt8zBF/PU6Xrz4Z/HeIK7S3Vt8blLlZDKvubtb+xoEBtXgvp01ta08sNru9oknN1Orkm7XUBBiFfbkISVp3h08cDXzVNwVw/5SdsTFuyh341lOU5YLwFAk/Aj0pvAbgKBKpiFGvBhCHAPkSuPL1bc3/Aj/Wr7s2bGShWcwD0bKQDck931hEhJhZwfZJRE15VuWDo5uBRIlEqONeZ69jWcBQcApgjETFcaOWStSMUvwe+M7om8IrkQfAYh1+wvgmqF1LII22aNBwTxRzRGQm3bpL8R6iKedNh+0n3yzTDqZ1h5S14lFzfRBEFWDrfNgEUSTXfisIbXfcdtjETG0QTUpc1LZ0DuipHPD5TYjNcF582WjRLiQYgXrgPTl8CtZqbZf+8th/uZ5tFte0WPNawHtJoN3DEfsCF4KIikH1sXkY9h8enDQgaxhdT5vb5GFI2wLCD+ovDrORByozERTwzYiQY47a0vzzwKOL7dXZgB7RVHm4nWEg6P/ze/kB2q7hIvsl9SL553I6z3f9+9xr4xjesb0rKXzm5Up24FfQvLRn7BQKUWjknvBiVENWKRF8UgpgkDrgcCFLxeWqZVptEruwv92kFlY=
- secure: jJJGWt6oEgUMNT1w9qqc7HONy1KQVLGfQ/WOAOV0VdXirtPRXflUJAFUDFw98fYVJyi3cgJgM9bAg1yyvX2UXkoh4I6/KiotU+Tz55Ifj/z2oaGoHfbUI3HTjXNdErUC0lZzQ6ugLw1dUf6RRl8TBL859iENcE1/qb1/0huKM1r4ewaKMNsZGDtlUa2igXFOB+G8ZBZrs2bMyo+OiQUdsx7j9EHMgbRsd78fiYypUo8RiRtydP2fN1YEq9mrAysVsLqIuFOmDdVzTGNF6XycJStos6kUhh5HpKmrja70eIjFO4OlAOI8lwI4Iv4O38l7KUnPNLntWw0YkO6KnLCeSteShP6ZOsrohAnvU0y/EqIKIEobJUfxBthW8Zm+KguoTqjLEVy6GuR99gAl33AkzpOW8RwHLQqqWJegcfEk6hfgKlE46FuXv3rukLrG3ieNH6H9IdvVfFok6MtuEziVX5bt0p4gCLmTXicyBTGEf/skED8r3Zw7KW/svx7wEAmem1bD3l/jUpbtOaooVl4QV4N9YeOl7liZRufyFge6BG/DfokQb5Hl46MsEJLFKY5YTiTc+OK9dVK6bhojSBQLGZvleExDmJtGufsmgsDhZfrAXmBJsF1LpzPYdrcyeEkd/a4YCWyvfNPZep2yvKrYrOHVMUcP+b61ljVz/8nlK0o=
matrix:
- QGIS_VERSION_TAG=master PYTHON_EXECUTABLE=python3 PIP_EXECUTABLE=pip3
matrix:
allow_failures:
- env: QGIS_VERSION_TAG=master PYTHON_EXECUTABLE=python3 PIP_EXECUTABLE=pip3
before_install:
- docker pull boundlessgeo/qgis-testing-environment:${QGIS_VERSION_TAG}
- docker tag boundlessgeo/qgis-testing-environment:${QGIS_VERSION_TAG} qgis-testing-environment
install:
- docker run -d --name qgis-testing-environment -v ${TRAVIS_BUILD_DIR}:/tests_directory -e DISPLAY=:99 qgis-testing-environment
- sleep 10
- docker exec -it qgis-testing-environment sh -c "qgis_setup.sh ${PLUGIN_NAME}"
- docker exec -it qgis-testing-environment sh -c "$PIP_EXECUTABLE install paver"
script:
- docker exec -it qgis-testing-environment sh -c "cd /tests_directory && paver setup && paver package --tests"
- docker exec -it qgis-testing-environment sh -c "echo '${PLUGIN_NAME} has no unit tests yet, please create them and add here'"
notifications:
slack:
secure: abXN9w6rBcNnG/x5YdXVpYUX1bj0vlpUJ9+zPFCdT6/ZhH2aQOlt+QG5HpeohPo6YRcJTdkN14BRlr0kgKTOlnpsvMs39ILweokKfgfoKqICNiwzRLCnLapJCehy2i1msfvxcUk41UK7KCpUbNDc657DYNQj77zt/MaBNFQZ1AgBvPaHFh0jvkEy3E7bMfS/e86FWdYt+9N/LMk9zudesdd+7lMP+bGbOmWzAnCWio8IpPb7D7lCnAdrouePfVysqqH8nYj8obA9sbYauOJDOcgrgXGuTYuPKZOi1/mSCqrzmqUu4bHmsel7f6TKjVIpgn+fDU+KrQanQnW3jGo9yHyrpYTVEUE+3fmLIG30h7Zsnp+LatjTRf2YcZNgMwEkRbnXKQ1bP75MTwmn6k9a0eBUupFapBNtf9z6iV2s/0qsLZACjQ10r04XHhnopWu0Y1l2SUACU8pEthWUMTW4/zmT6qjTa4ST5xXz6f6nQMCziKg1gqKiqwFOAr7R4AsCFwUqIQAQzrp3CMl/3CfWA2CV78orrtT7Fr+KmuKJj+lP1XmaLVnsn3E0fWr+COq/ewpOf4M9atdhiikDhwtSANcN9GhrPCbM/nF/61RlVKF+uzd+wgjnlwGxX2eXgx0L1nyjy+RwEGECuJi0nQXvVQpCtGJJvMYVvkFG3eEOc+s=
after_success:
- |
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then
mkdir /home/travis/.ssh/
chmod 700 /home/travis/.ssh/
openssl aes-256-cbc -K $encrypted_61ccc39a0129_key -iv $encrypted_61ccc39a0129_iv -in travis_secrets.tar.gz.enc -out travis_secrets.tar.gz -d
tar xzvf travis_secrets.tar.gz
mv id_rsa.qgisrepoguest /home/travis/.ssh/id_rsa.qgisrepoguest
mv ssh_config /home/travis/.ssh/config
chmod 600 /home/travis/.ssh/id_rsa.qgisrepoguest
chmod 600 /home/travis/.ssh/config
export RELEASE_ZIPNAME=${PLUGIN_NAME}.zip
echo "Uploading ${RELEASE_ZIPNAME} to QGIS Dev..."
scp ${PLUGIN_NAME}.zip qgisrepoguest:${UPLOADS}/${RELEASE_ZIPNAME}
export GIT_REV=$(git rev-parse --short HEAD)
ssh qgisrepoguest "${UPDATER} update --dev --role desktop-qgis-plugin-dev --git-hash ${GIT_REV} ${RELEASE_ZIPNAME}"
fi