summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJonas Zohren <gitlab-jfowl-0ux98@sh14.de>2021-07-19 08:23:04 +0000
committerTimo Kösters <timo@koesters.xyz>2021-07-19 08:23:04 +0000
commit2babff1e418d9c82d187f7c016d7e33ef00a3d2a (patch)
treec9e6ab9d3a21aab441768333fcda5a1340f303e2 /.gitlab-ci.yml
parentf924ebf8a60c7571fdd5b5f5213f6bc603ef737c (diff)
downloadconduit-2babff1e418d9c82d187f7c016d7e33ef00a3d2a.zip
CI: Test registration with element web
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml31
1 files changed, 28 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 92da543..cb7385a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,6 @@
stages:
- - test
- build
+ - test
- upload artifacts
variables:
@@ -8,8 +8,6 @@ variables:
FF_USE_FASTZIP: 1
CACHE_COMPRESSION_LEVEL: fastest
-
-
test:cargo:
stage: "test"
needs: []
@@ -34,6 +32,31 @@ test:cargo:
- cargo test --workspace --verbose --locked
- cargo clippy
+
+test:register:element-web-stable:
+ stage: "test"
+ needs:
+ - "build:cargo:x86_64-unknown-linux-gnu"
+ image: "buildkite/puppeteer:latest"
+ tags: ["docker"]
+ interruptible: true
+ script:
+ - "CONDUIT_CONFIG=tests/test-config.toml ./conduit-x86_64-unknown-linux-gnu > conduit.log &"
+ - "cd tests/client-element-web/"
+ - "npm install puppeteer"
+ - "node test-element-web-registration.js \"https://app.element.io/\" \"http://localhost:6167\""
+ - "killall --regexp \"conduit\""
+ - "cd ../.."
+ - "cat conduit.log"
+ artifacts:
+ paths:
+ - "tests/client-element-web/*.png"
+ - "*.log"
+ expire_in: 1 week
+ when: always
+ retry: 1
+
+
# --------------------------------------------------------------------- #
# Cargo: Compiling for different architectures #
# --------------------------------------------------------------------- #
@@ -76,6 +99,8 @@ build:cargo:x86_64-unknown-linux-gnu:
extends: .build-cargo-shared-settings
variables:
TARGET: "x86_64-unknown-linux-gnu"
+ rules:
+ - if: "$CI_COMMIT_BRANCH"
build:cargo:armv7-unknown-linux-gnueabihf:
extends: .build-cargo-shared-settings