diff options
author | Kali Kaneko <kali@leap.se> | 2017-08-29 00:51:39 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2017-08-30 16:18:57 -0400 |
commit | 7cdb807f2ceb8be757ecf14acc60beef4fc9b699 (patch) | |
tree | bc1315bdff0fb5210cde0d03d38b4e4f311d9627 /.gitlab-ci.yml | |
parent | ec3c4a21b24afac389a10bdbbb9ac36acd2a6ffb (diff) |
[tests] reuse tox virtualenv for e2e/functional
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 12a01823..8d90eb38 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ stages: - test - e2e + - functional - bundle - test_bundle - build_ui @@ -15,6 +16,11 @@ linux_test: stage: test script: - tox --recreate -e py27-dev + artifacts: + paths: + - .tox/py27-dev + name: "bitmask virtualenv ${CI_BUILD_REF}" + expire_in: 1 week tags: - linux @@ -47,25 +53,34 @@ e2e_tests: image: 0xacab.org:4567/leap/bitmask-dev:latest stage: e2e allow_failure: true + dependencies: + - linux_test script: - - virtualenv venv - - source venv/bin/activate + - source .tox/py27-dev/bin/activate - make dev-latest-backend - mkdir -p /root/.config/leap/ - make install_helpers - make test_e2e + artifacts: + paths: + - .tox/py27-dev + name: "bitmask virtualenv ${CI_BUILD_REF} (e2e)" + expire_in: 1 week tags: - linux functional_tests: image: 0xacab.org:4567/leap/bitmask-dev:latest - stage: e2e + stage: functional + dependencies: + - e2e_tests before_script: - - virtualenv venv - - source venv/bin/activate + - source .tox/py27-dev/bin/activate - make dev-latest-all - make test_functional_setup script: + - whoami + - ls -la /dev/net/tun - make test_functional artifacts: when: on_failure |