-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
49 lines (49 loc) · 4.3 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
sudo: required
addons:
hosts:
- boundless-test
services:
- docker
env:
global:
- PLUGIN_NAME=reportingtool
- secure: "ANyaylherbXBIdMcBgX94JT0RfoSxaQmFlGj8Zp+t/wxX3NSGqg3dr8ARkw6Jt4kxk3FQPG6gSXTl0j3gmzNP/+kl4AXuyJz2Z7TSu0s4aFeQiRR4r4wAAVZ89GbPsNEmoPhTAZTFpPiuk1Lu59HJ6Lu767jAlTKZ6/siF0LtXpNyc1IK+oQcepT8cXrivmFakkNAJ5uQKyMFbG4gMfyGq4CKauCg1/2l61ysemixm7xkrzAS78gzePns5FYNk0KgC91ZusMgRrvbk+9qr8pJpPeW3NkRUzVOtcp5mmKWQixuQJ19K/fiLTV8XwmiRlQZLLkINhb0rYiVJBpoHJRyqFD7oh56CW9vPp5oOrzFptLGIM8n/N+VhG71LJNW3KzxaY00ToPruYseCokuxdyLUioQwXok2bw26ZyeeCyfXvT2/cE7q/ApP+lexkOnz5tDL53/n9vgyfd9RjXj+56zNs6W2kTJwQ+cZbrCvF8jHCt3uHLHR/Fh4SCPRDp4CRLsMZVhZG3X90GV047ssEMNIH0T8nI+aqXnYShL9MWS+IvU47bfJqgPRXayRcm+1iwkporlD4eTrmACBvqEnYdp99MhJ1G2VC6JC8RCrHWaUqtYV/YqN2Qebvz2qND64FwNTaHgPcXRl9Q0MgMT5mtXF5MZoSzMJ9DGVRiZ14xQnc="
- secure: "JDYdAwYvR9g2f8BYbQ8CvqDAQGQ/7ZYb6Yek/UEzenAcRXlSsGc+DF7t0OuuSM36LoGJkw3G3wfRwS44GEFnk3h6sLPVgy7dtmIXROITEYtZVJb4NGuYn/bKKTt36ksI578KcBMwhsLajKfvFkbjsjbkb6tClm0FqEMO/z9HprDJrQkuqYir77aj5Wk/8TuagtM1TPX5YAJUi0+njg4+oG5GAJGUVn8L2McRetxzCEcdk3/zCnUzh4BQH7CQAb6YilPdiitDfSFQES4frHzIfhyieiuZ0PhxqVx/Vo5Pbz8uOKE3ctiPrainKb7PQ8/6vvWxs8EaOMMHpyv0f4USzpFhnaUrf8XfV96wjJPEnK87foHD8I1lc3M0Wtt8Xah0wm+nr7kvMXuzXBc8Vdo337mZ4BkGK/MstrI5s65ggvIsEYzhMgok9Em+6G5ct90713ZwU8xMhJfnJ9cSnrjHa/wUXa5bg3OhdV6RM7UgIvig/g3ejUChzBa9Z8qDqWljmF6v6zeJ+sFA9Jd4cNidgCO/tPGBRbIIYoLoysyT1S3qJSQFxCV+nxsniqtP2H3h7u57BbXVypuZn0yQI3V97a8TBDrUnk01HasdO9T21z2zcWgLosoxPd+xY49T1tJypf+YyKTzXiNIXKChWe8qhVyslUxlofnWxZDWarafW+8="
matrix:
# - QGIS_VERSION_TAG=release PYTHON_EXECUTABLE=python PIP_EXECUTABLE=pip
# - QGIS_VERSION_TAG=master_2 PYTHON_EXECUTABLE=python PIP_EXECUTABLE=pip
- 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 elpaso/qgis-testing-environment:${QGIS_VERSION_TAG}
- docker tag elpaso/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"
- PLUGIN_VERSION=`grep version $PLUGIN_NAME/metadata.txt | perl -npe 's/[^\d-]//g'`
script:
- docker exec -it qgis-testing-environment sh -c "cd /tests_directory && paver setup && paver package --tests && qgis_testrunner.sh ${PLUGIN_NAME}.tests.testerplugin.run_tests && PYTHON_EXECUTABLE=$PYTHON_EXECUTABLE /tests_directory/${PLUGIN_NAME}/tests/commandline_test.sh"
notifications:
slack:
secure: "jZJVPzb7dHrSpsldsSfR3WmF3ChmgMfq1rf8L58WRhx2r0+Jf1JvlKNZgPihd43Pp3lHiAtp1KE+iMQ7aD9KI3yj6RXJrCXQR+ANJ5pzdXA136vmCOl1m3bl+zlo7QEgWosczbNXu0yE/C+Iy/Y1gGI8SvYxvSQeS4Bz7rL5krNndb6G8NzVqiQ7UPrPr8usMMorguIYw62lRuGSHgImteEfKhGQIrYt9xHHvI3Eo5flEDdTr5PsCYoJA77hx6hhZGJqHdduzcOnECdCR+hvfw/1pyEqjgfxfXvHy7diC0xv++hY8ef9bSEsCH2Qb0um7g2sdz1LFZEdNGp1ldfWSQvCkXBim4HcBvkHqBd8C4hBHpMjscCI8RIJUfZeK0t283w/XetdZnjd1zJNriP2pdo2Ys+ROLqAlmvaX9jE6fhEOoFEyqougEWOIOD/kClDEpusu4SaYJqWCdX8uzZQe3hCXc9J7KlYclbr18PxAjPgEj8V1AXj7MdtzjfUgdju1oTJY0m/3ZJV21fr+IIMA6X7hItOk59oBTSAxwrNi847FQIDVsmVoaXeOo81qJ7ttAGclYtI8qNJctQCStYPRty7M3KLWUvvukBsWu+TTQIKgP+FL1ZxNmcvJo9apvliXIlErKsyjxSX3dYp90sICBtEJ51Wp+rDeaaJwpSgxDU="
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_70285cea7e77_key -iv $encrypted_70285cea7e77_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 --remove-version all --role desktop-qgis-plugin-dev --git-hash ${GIT_REV} qgis-dev ${RELEASE_ZIPNAME}"
fi