From 671724ad9b29ef40fb3221077aa25a1bc4cb051b Mon Sep 17 00:00:00 2001 From: Alexander Harkness <me@bearbin.net> Date: Thu, 17 Oct 2019 15:32:18 +0100 Subject: [PATCH] Add installation step for chrome and run tests on CI --- .gitlab-ci.yml | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5db5935..d14b146 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,6 @@ stages: - check - build - test - - testChrome - deploy submodule_fetch: @@ -84,7 +83,8 @@ chrome_test: dependencies: - dev_node_install script: - - npm run test-e2e + - apt-get update -qq && apt-get install -qq chromium + - npm run test-e2e:chromium deploy: stage: deploy diff --git a/package.json b/package.json index 1871839..87b9c39 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "test-changed": "jest --only-changed --testPathIgnorePatterns src/liowebrtc src/rtcpeerconnection src/signalbuddy", "test-coverage": "jest --coverage --testPathIgnorePatterns src/liowebrtc src/rtcpeerconnection src/signalbuddy", "test-e2e": "cd __e2e_tests__ ; ./run", - "test-e2e:chrome": "cd __e2e_tests__ ; ./run chrome", + "test-e2e:chromium": "cd __e2e_tests__ ; ./run chromium", "lint": "jshint .", "validate": "npm ls" }, -- GitLab