summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2019-03-06 14:36:00 +0000
committerTim Zallmann <tzallmann@gitlab.com>2019-03-06 14:36:00 +0000
commitb122bcdfb11ba6224c720bfbdd2964a54bb17b24 (patch)
treef4601da7585cac5018e5ef7bd6032f404dfec5f2 /.gitlab-ci.yml
parent2e1549427029f3f6635659a1cc0434666bbe9d67 (diff)
downloadgitlab-ce-b122bcdfb11ba6224c720bfbdd2964a54bb17b24.tar.gz
Re-add gitlab:ui:visual ci job
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 668cf46cef8..75da38658af 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -683,6 +683,29 @@ 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
+ only:
+ changes:
+ - app/assets/stylesheets/*.scss
+ - app/assets/stylesheets/**/*.scss
+ - app/assets/stylesheets/**/**/*.scss
+ artifacts:
+ paths:
+ - tests/__image_snapshots__/
+
karma:
<<: *dedicated-no-docs-pull-cache-job
<<: *use-pg