Skip to content

Commit

Permalink
wwer
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Mar 8, 2019
1 parent 9e3a163 commit 1117c6b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .ci/travis/linux/script.sh
Expand Up @@ -30,6 +30,10 @@ docker run -t --name qgis_container \
docker commit qgis_container qgis_image
echo "travis_fold:end:docker_build_qgis"

docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" || true
docker tag qgis_image qgis/testing || true
docker push qgis_image || true

# running QGIS tests in commited image
echo "travis_fold:start:docker_test_qgis"
echo "${bold}Docker run tests${endbold}"
Expand All @@ -53,8 +57,10 @@ testrunners["test_testrunner.run_failing"]=1
# Run tests in the docker
for i in "${!testrunners[@]}"
do
echo "travis_fold:start:docker_test_runner_${i}"
echo "test ${i}..."
docker exec -it qgis-testing-environment sh -c "cd /tests_directory && qgis_testrunner.sh ${i}" &>/dev/null
docker exec -it qgis-testing-environment sh -c "cd /tests_directory && qgis_testrunner.sh ${i}"
[[ $? -eq "${testrunners[$i]}" ]] && echo "success" || exit 1
echo "travis_fold:end:docker_test_runner_${i}"
done
echo "travis_fold:end:docker_test_runners"

0 comments on commit 1117c6b

Please sign in to comment.