From 211ae9d093de08c1cf97768121a18add814e2879 Mon Sep 17 00:00:00 2001 From: Clement Ho Date: Tue, 5 Mar 2019 07:12:13 +0000 Subject: Add gitlab ui visual test --- .gitlab-ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2329c9c6edc..fa47aea310d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -672,6 +672,24 @@ gitlab:assets:compile: - docker - gitlab-org +gitlab:ui:visual: + tags: + - gitlab-org + before_script: [] + dependencies: + - compile-assets + script: + # Remove node modules from GitLab that may conflict with gitlab-ui + - rm -r node_modules + - git clone https://gitlab.com/gitlab-org/gitlab-ui.git + - cp public/assets/application-*.css gitlab-ui/styles/application.css + - cd gitlab-ui + - yarn install + - CSS_URL=./application.css yarn test + artifacts: + paths: + - tests/__image_snapshots__/ + karma: <<: *dedicated-no-docs-pull-cache-job <<: *use-pg -- cgit v1.2.3