From 53e7c4cd6919fb9403b81cb743d35fade43d2db5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Thu, 20 Aug 2020 11:35:31 +0200 Subject: [PATCH] ci: fix dependency for selenium test MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The build directory should be passed from the target environment test. Signed-off-by: Petr Å tetiar --- .gitlab-ci.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 15ca634..6a1e087 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,21 +47,28 @@ build site on Python 3.8: variables: CI_PYTHON_VERSION: "3.8" +build site for target environment: + stage: test + image: debian:9 + before_script: + - apt-get update; apt-get install -y make python3 + script: + - cp -R ./www ./build + - misc/collect.py scrape https://downloads.openwrt.org build + artifacts: + expire_in: 1 week + when: always + paths: + - build + test site with selenium: stage: test image: selenium/standalone-firefox:latest + dependencies: + - build site for target environment script: - /opt/bin/entry_point.sh & - sudo apt-get update; sudo apt-get install -y python3-pip python3-pytest - pip3 install selenium-firefox - (cd build; python3 -m http.server &) - pytest-3 tests - -build site for target environment: - stage: test - image: debian:9 - before_script: - - apt-get update; apt-get install -y make python3 - script: - - cp -R ./www ./build - - misc/collect.py scrape https://downloads.openwrt.org build -- 2.30.2