From d6abd906cb64ae68eed3348eba521bc44ebed7b2 Mon Sep 17 00:00:00 2001 From: Varac Date: Fri, 9 Jun 2017 09:40:55 +0200 Subject: [test] Add basic functional login test * Move todo list to https://0xacab.org/leap/bitmask-dev/issues/8929 * use bundled pysqlcipher - debian package has not been fixed yet. * reset bitmaskd for each scenario so they are isolated * run functional tests on CI * moved e2e tests before the bundle * add test_functional_graphical Make target * Install chromedriver in docker image * add screenshots as artifacts on failure * run chrome without sandbox for docker Tests were failing on CI with chrome sandbox: https://0xacab.org/leap/bitmask-dev/-/jobs/15196 Used this workaround: https://stackoverflow.com/questions/28364012/webdriver-exception-chrome-not-reachable/28949227#28949227 - Resolves: #8929 --- .gitlab-ci.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c05494fb..cc7520f0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,8 @@ stages: - test + - e2e - bundle - build_ui - - e2e variables: DOCKER_DRIVER: overlay @@ -28,7 +28,7 @@ bitmask_latest_bundle: stage: bundle script: - pkg/build_bundle_with_venv.sh - - mv "dist/bitmask-`cat pkg/next-version`" . + - mv "dist/bitmask-`cat pkg/next-version`" . artifacts: paths: - "bitmask-`cat pkg/next-version`" @@ -59,6 +59,25 @@ e2e_tests: tags: - linux +functional_tests: + image: 0xacab.org:4567/leap/bitmask-dev:latest + stage: e2e + before_script: + - virtualenv venv + - source venv/bin/activate + - make dev-latest-all + - make test_functional_setup + script: + - make test_functional + artifacts: + when: on_failure + paths: + - "/tmp/*.png" + name: "Bitmask_linux64_${CI_BUILD_REF}_e2e_screenshots" + expire_in: 1 month + tags: + - linux + build_docker_image: image: 0xacab.org:4567/leap/bitmask-dev:latest stage: test -- cgit v1.2.3