forked from planetfederal/qgis-lessons-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (49 loc) · 4.15 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=lessons
- secure: hKTLh6YaoTvZDg9aBOvcJpgZvtiDuNygN3VBXWl2YikHn9Q/1MOb/zs4eliK/O4sbyBkMrYfxQKtpoHo1n8CHcsq5+PORoxA1XjJJeYFB5bMGi9J8pXkcFyRciuJ2JKcylScI9gmJgy2G1goq+qPFdYxyEWqaLweQnQLFbuf5e0nxCOopEkCNJ+pO4m0Nc8CGGXIn+/V1DPbqWXxtWcEw6nU8qdSv9wsPpFYKad7T8kPmWGCLZT3TpYb4JLonh51XfhSClJKp7Sq1jZWFdx4IM48QiZuDFz1YGRLC2wEAocTU2TtYBT2x1eKXPIYtKH/GfDgygYKZH8O8JijC19bjBzo6Ej3c/BKy1/IbokBWNuoP9nyaETPJJCd1tDAQ1xJu95HFNtzR3sTWfCNW1RBZGpAMEys7RDjXvv+s8dWRvpYe3wqujQ11pByVXVn1Zf5ADFj09Nzppf+TPwKORM3PCQJ+JFVtfNGFzH150kNNUuIzgOd0h06AOnNC9IVMjGcWYwNyXg9HtTp/f+25g/ZqB9liLbpXODzkqfqKG94bD5vagKXMF8gdkK6HOzoxzuVX7ZZKT+vLWoIO8GyZvrKw1eGwqDxWx/MC5jtM7m9ViOGfLJq0S53XKlRcrErai/FHKqmmWogj0BWcnFXzg7JkjdfKhqDEVay55+LItsCHWM=
- secure: P2pziLKtSfYpVpeAO4BB5CnWH1ECBq4ixoEXHuXIrrv4EzAcXx0JZ1RihczjsDJISuIXRz5ecxjavxttAiVOBMSQQsD8WMEXbv5gnTJV1JoaI+VtlKA92/gXsK0oMwaiimwOFlg0OENKYi+FWA8WvyuDiS517BAcqKdmHe87uj2DfHPtaUA/wd6dEqxL1aJ0MS//L3rrL7iCH0+zkh6Vocnnfd5eNBZnYuFI7FK0RFGTwEf+N7fqXVVJpEqy5jyo1EEKyvHw92MZ4X/uDoH++n2Trvp1K6Y3Nm+/NJpRZ8jyujfcrRSIBifBA9YI236mPNqawk7XumoMUu7oA4WGLp2s3RPJWhgyS+J1h6xTceaWtEm4CCOzJ+8AlTmd29Lervsc/e+ZeGeF5FWhGnUXoHYNMfWbr9F1F0KyIDBFnYgMrpQrBAZI8sdgdnX+cM8vxVCea13PnMxPt9P1P/GKJeNlXORa8lL/8WjfCuc5Yh8Ek/ZG40KKWimqGmPaNLsXkuWsT2cE76l4aDHHX2JlUHDxIyvjImShVz1lElysAM1eUSxGXPACyS+nBYI24TG4tEc4okQyGFi6KJGAOOlARGA4409jiuFlS9PPHzCmrvcJwiWQBrkmbIVnCze4cGfGrSTyFkhVhwN+UEkpaQT1QVq4SRd0ENLHKeNiObTCkfU=
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 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: XK2288c7J/9sHYB3EsOL6DV0c+QrQ3kPlVK67XtE0rcQ/WbBB8Jq/7jxPF7p2DsEvlFwgmz47GhHxwCHmcHsGqsRLmfBDYRLQOWGqaMAhuoKKDNuW/aYsrc2MuUMV2GmXRbL7LjWLhONvXkENVr7QLJ8Z3cLGhP8Kxo13TKmKDiXV2bywPUBPwSsWyhORqXMQCOcoc8an+eW0Omz8Wxd65BIn1JZh1YhAoMPjl8ymJOk+bfiG70u1fxXdUmOtjB9LNCPCahZFKuLtuaRdWfmBU/+QawNVTWYc+6gKcupPEqPphib8ZJiSEDUujdubN7YNe+Ya/6CIU3cAyltAq48pxnPNCSwPIJkirwas5s5TdzsfRU5B+Cev6ushEJyE+AZvCs+qsVxAErEsVoy1nQP5bLSmrI2pBiWHQEDwaKe1V+JvrXgVp8gEw1D67KTQci9FB1MyS74nL8crynbLENHJ8527zYW7ZP8YPTp5rrklsi0nSTIYdOiHJQJScnxxmcmZ1ptbHwsMcyGoFOQsS0S2jciDZ54CSvNy/WVjINMjw1F2m0vaYnCSp/EICciNc8KcomuRPOoV+Yv15ObPPtNtRKQYPLr+DeROBcL7odVmhV2MZVEtCEpZanWVNOIGeRdzlrRfxk6qbZ1hUwk/2Q0eDH7NIZnxQesEHLd8zRf0Uo=
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_67c2ede4a665_key -iv $encrypted_67c2ede4a665_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