-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
52 lines (52 loc) · 4.48 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
sudo: required
addons:
hosts:
- boundless-test
services:
- docker
env:
global:
- PLUGIN_NAME=coretests
- secure: FG4rSWiPJXexmBdkecCcUyjYlxbTXbifwhEcWLS+neP4gn6g9ms/E+tyvDxFOXUa/0lelTDOAsHqzS1OwK/77j9eal/EeyHTsU66CUklz9JbyGfquhAs7YvLt6hYUmj8cnXTWcl24kLE3UaARtmnH7DrQAIemd3zeVrOhSI0iS4BFkQCdXnUMOTjH3iuk8VdFBWlnUAV7FuTIffv9wx8dgSAix0/ZFNTZl9zUO9E7VNFfvjEmOWwzKl+pwvQSfdgC2kV5bwntXfD7Nbo7rYrqAIJPWS42fVxBqoCaVtyTWwHwqPRySufc07aih1XvOm8sNiayjExgq+KTkq7qc+FRlEGYgY9fymXn6efeHA3rgiv0GTf6PrG/KdhJxYS3NtSY4If72DQGwxu/C6AoBdtw2hinwJqKwPyiT/26JE35L0rHkT6GQ3LWulvGK+uW3j4YYIlQrxpTh5oFEGhOWlehJtZNNfZmD1dE20vtfDl5W8pWIXnr+UitwHy8lPahupLI4jBeOkTbW+BtSZYd5kaTBlkFiMPw6NNcp9XqCAEJrK5Kdwzj+EcgPoCzMS51p/pdhOAe4NrFCThKo2g2zA2Aat67JUakveh2M0Jv6L1iZN95HP8N9KsUDZqKz0YR8c/Cvfok+uGR8IO95MWr+4dDl28QmY3rl79C70Gm86fLxE=
- secure: IXngjLbSrur4gqkgBjBJ11vPVsQnZmbqPXqPro015wHhn7kwhpK+8FdnNLdeRIDxWeJjBmX4EHJcr9yAYweUEHFPOCGMZzISpIHZ8Wsf/1ZS3uHfUt7WP7Xf5htx2yxzWazLI4sLFjcSng1gV84DZnql5dxyPhUCAwSiU9mrcA1WFtOZkLf5zsjYsThvDgn3NQqO1xSmEztNoTGm3DonH0dy3PqKr5HN2izLxN93+fHUnsqWT5CFLdcFaKW0yQ68CpTswF9D4dtxjr+NT8mgvOI6s7sulpTh2ok2q83X7ooCF+DNBD664T3067bd6bGpsMGzwhnYl1/y8KsKQx0fCA+jDlGC6/yEQzhI+sB6biyt8pGNIo5Dnv1WcikisgebM4HMyuIJZYvph9YILZDZBiszKQF49rNGjGEwhdbnTkyz9oeni1lpTV83pxDlTlshEkAlfnRuRMDp6+n21lyXdjE9oe17SaKTw2R8kzivhGgAWIEEMHUFL5dJcodZYL/bvdPZr7K+q2DUxoiyhDtnBPBiKaqHso37KCadc4gFSMFvzc1xXIIp3LDxV+g+vNTlOyY0HlWVgyaJrRSRE9obpsUfFu7p2OzxEBbJjzQYry8pW8Gk8oduGtSbYxuO0xDS8tSxdLG7w3GxyayE7PNhZ2/lFFr/4Dt9jFJ7Inv3i+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 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"
- docker exec -it qgis-testing-environment sh -c "cd /tests_directory && paver setup && paver package --tests"
- docker exec -it qgis-testing-environment sh -c "mkdir -p /root/.qgis2/python/plugins/"
- docker exec -it qgis-testing-environment sh -c "ln -s /tests_directory/$PLUGIN_NAME /root/.qgis2/python/plugins/$PLUGIN_NAME"
script:
- docker exec -it qgis-testing-environment sh -c "echo '${PLUGIN_NAME} unit tests are disabled because they are meant to be run on BD platforms'"
notifications:
slack:
secure: P+blcAlU9Zv3TzsOZT1omGgJHP4gBQwRXwiYAIai4ox1bK4lDvVYd00qKWRrfi8gY/Xbn/3VBAoyRAvbWYx3jpocFlCSkmOH9icfk1/G/Mh999KrY/GGBzy9tx6u4/Bv9+lla6nd66EGa3Bacy/Yj9vVSLNkT1hYQEhJNSLQz4GJvjmAW4xRZTJX/DUeqgXlF3SR8rabAKVTcBdCtMiG/vJKz0ONp1AWwF6/gcxQIPQwt8qMmHk0dpio7FDXxhnGjdb3ayRLBUQaSKkTfKDIs4CPb7OU4CIAtjWlNq2BRaf846f+0YDpJl71XZjJEIqbfxj9l2SNttu42JNDdVkBC08p9obWDdHgPrXIKY3w2OWvX2lSG5x1DlhjXRuu3YkmYRI+XBi8iNi32vMNJnwoq4BEo2eJtB53/9UZ95RtdTpPtuvQ7vUlEkPs8tzxA+YAAY7o103ZMbAtFx8b7hfewAtTNcjAy6FmkCoH+tL/EMAhYdY7qielZqpk/JN7BODhs+2VC7ZwI8h3o58SrYk77ISdmZg+s2Z4Wrpdc2o+TpxP0GaoVdB6NsExg0gztX7RzqmUD84ltTBs/fdXZ85jxh9m30mC3Kw4PYpDhzTBsFqiHFgo7fGrLwDVnL/U1wesC8GYWkpXhUzK8V027lGW6PRnefEP800splpxQM7Ha5g=
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_7bcfe3fa2019_key -iv $encrypted_7bcfe3fa2019_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
docker exec qgis-testing-environment sh -c "cd /tests_directory && paver package --test"
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