From 13ae0d3ba6f1984b7c9bed8d0283212b8a99caa4 Mon Sep 17 00:00:00 2001 From: sachaaaaa Date: Thu, 6 Dec 2018 09:46:41 +1100 Subject: [PATCH] set up gitlab tests --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..87ce0423e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +image: node:8.10.0 + +cache: + paths: + - node_modules/ + +stages: + - test + +test_all: + stage: test + script: + # chrome drivers + - apt-get update && apt-get install -y libgtk2.0-0 libgtk-3-0 libgconf-2-4 libasound2 libxtst6 libxss1 libnss3 xvfb + - whoami + - node -v + - yarn -v + - yarn install --frozen-lockfile + - yarn generate + - Xvfb -ac -screen scrn 1280x2000x24 :9.0 & + - export DISPLAY=:9.0 + - yarn test + tags: + - docker