Skip to content

Commit

Permalink
add more verify scripts to gitlab ci
Browse files Browse the repository at this point in the history
  • Loading branch information
vnglst committed Nov 16, 2018
1 parent 56d1e3c commit 8c6a7c0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ yarn-error.log*

# cypress
cypress/screenshots/*
cypress/videos/*

#storybook
/storybook-static
41 changes: 25 additions & 16 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,42 @@
stages:
- lint
- build
- test
- verify
- e2e

image: vnglst/finding-nora:latest
image: cypress/base:10

lint:
stage: lint
stage: verify
before_script:
- yarn
cache:
untracked: true
script:
- yarn lint

build:
stage: build
jest-unit-tests:
stage: verify
before_script:
- yarn
script:
- yarn test

check-build:
stage: verify
before_script:
- yarn
cache:
untracked: true
script:
- yarn build

test:
stage: test
cypress-e2e-tests:
image: cypress/base:10
stage: e2e
before_script:
- yarn
cache:
untracked: true
- npm install
- yarn start &
script:
- yarn test
- yarn cypress:ci
artifacts:
expire_in: 1 day
when: always
paths:
- cypress/screenshots
- cypress/videos

0 comments on commit 8c6a7c0

Please sign in to comment.