-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.travis.yml
54 lines (54 loc) · 4.28 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
sudo: required
language: generic
addons:
hosts:
- boundless-test
services:
- docker
env:
global:
- PLUGIN_NAME=webappbuilder
- secure: taPFjYx+lUTD8492SQq2Cw3tFIhnBq4C1UgdjnnUd03RpQU2ITrlvZ+Gxt3ZDB5HGB4zMi0/nNGlzSYC3mpQC3G3Csbm/FQU1sYxAqLJU8OZaRqT6D2MQNtaRCCcmzLNigqppVvF566NBHl5Sa6Ty28tYpHKDSqZ5MoYFg9uBYepAZjWjrfwzPcPuJqXK7ZDrz0o1V+S1MCgHOhNRxlM79KVFafwgdp+8K8sB01kD0ZZ7d1jlQrH8xhyqOKYkgp+AiFe31hKQ3FbKh0vxJhJdl5xqy8MsYRD+ubnIpR//4xquCY6SphgUBqG1m8zkgqQPN2P4WGuuhW6k+EKjLlGYVXv+et/i7A3u1uV38cCRT2S+GuojjxZX1LTnRgGrgtBEjl6fPAcmg3Kbe1HiTOU9b84KoWtLfuSBDNIn0C2Uyepnf5F5J93GcLQYPAE+VNkNyM61V7n5gkPittXhupU31BqEcemTjcq3cFgLh4wxwW/6RkGDFaYRU5KLSVujK3WH+dtLRt5oAXJ6JIBIyf2U4oZwImtCfBaZ94FeyQMrrHQ9ckCQVJ7o+uqBh9iUH2Mj/0sXfa8W2jeVz0mqTNvaZg1lYLuscGCAnzHldfKrkrNIsux8CRcxxvCLFmkEHteCM7rlyL+efbEi5jI4JKDEP6bSYsePYn21/us/epPIKA=
- secure: C/tBiHhP+bDr0dXuuwxIIVQonh9ciinQTgkpzsKaCtj+eMubZI7vcew6E6EozaOHmolNJVyNc7eLFaEuR3t6WVdOmNsXMWcgNMUeJFTaIyJLvrdBQD9exg4Vng5+JTlYmT9e7f5PlKvsBkSc2rX9BoRHuhmfUQXRyyeiQs7s7oRwVNgJ0PQ62Xn95uxsCh0pbwJX/iWL4Ne3i7CsQT2Z5Y6knzQl4XbwkZgZazLuXaoOQXqkKyctM7KU5HuJq0YHe3/VPOFoylIP1NLPptqC8mvuOWMr21xfBe8wGX1CHWEjLjriFU3HSn8S/2mZtIhmONa9963WakjMDQK0c4nBfrN52vopN3zxTTMFvvKzrPKFo3KWBzk4JndNqoYmSpTsofwsvTNrWmlDV2/TgytVc6r/dylrQGC9+eLZgN1oPLYK0JmuEoxqt89khyGZonbmxABh4X3FkbSwYtMi1nOGn8gDSHiPKyihjYTW1W6tXh2WmpXCe9LrzAcN+HUyFQtn629ttCtyBDSLoBeVf05L+NcZwtpfaZ7lQFns048LjGR5d/mdkh9dYFXry5Nsu0LqxUuH6t6zlbRMVyLG/JfMhjDopL1RrDD88xuRjX0whn5+tzmvx+vbQoyG3kfor4caKw9UTeYJi4TIFa8sPr74f2/zRVh0hV4Xf9xmVGNK020=
matrix:
- QGIS_VERSION_TAG=master
- QGIS_VERSION_TAG=master_2
- QGIS_VERSION_TAG=release
matrix:
allow_failures:
- env: QGIS_VERSION_TAG=master
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 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 "qgis_testrunner.sh ${PLUGIN_NAME}.tests.widgetstest.run_tests"
- docker exec -it qgis-testing-environment sh -c "qgis_testrunner.sh ${PLUGIN_NAME}.tests.settingstest.run_tests"
- docker exec -it qgis-testing-environment sh -c "qgis_testrunner.sh ${PLUGIN_NAME}.tests.appdefvaliditytest.run_tests"
notifications:
slack:
secure: BwLCVjcjVXxENbJ6xMh88snOfifUT0GnXMaOpKP3YJHlvYs2eSu4AIOuC5lmsxqqosTcenNrmhb+dRVzbPhpoaQAxz92yJvhOgndEy8JmwcDSJUsL+Z0fvkjGgyhc2OnJ0+f8ZN8xwHteknu+6Q1POuI+ouLIBdSNN29ULBjMPvXmAU4Vd0OuzdcF/juwXZ9UwYfJe+T+Mc+NVJm0uOMXCUh5eXlnzIFKiTaIhV0zJXe79JDt5bFgUx2BX0WpcdWEVEgcAM+Up9gn/yJ4xKfLu8e3/sA2lnH4zIhNrUH4OIry4JBtcBZ7BJb5EwT/rwZ3vupDMaUWxxub3cUgBlYiAQdJdYAv+MDQvnNGiIRFJeSPDvzwDQM1eo0Aif2IZuItTk1c86VmCNrnJ0kdjDcOvVPyS29HIbk1nHTZ8fd3aar9hmsoLAyuk/Er2cWgv1lHNeY9Doro5azsquXb6o8nifEOHOorg0O80S+gSNKBKE3U3hIDDaSV9foQCWd/R0HDWlezw+VSWzUDtzQ4w8StaMVRil4hDySU6UDgh1NIyiDrr3EiwK2CTtZtSMwvEvaI/2j//pNY8d7uxWTcjmrIV1zw1tAJahi/OlnmJsnButD5h8maZ6A88TH71jReqf2m5R495NT9vyjij5nnEoA6do85Zr/jz6p3XGObrz5OMo=
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_63638afcc0d8_key -iv $encrypted_63638afcc0d8_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}"
# Debug output: check the zip contents
unzip -l ${PLUGIN_NAME}.zip
fi