We planned to upgrade GitLab and Mattermost to the latest version this Friday morning (early). You may experience some downtime!

Commit e94c71bc authored by Wietse Kuipers's avatar Wietse Kuipers

Merge branch 'better_ci' into 'master'

Add caching to CI and better stage split

See merge request !3
parents b5a66a63 ef013958
image: kkarczmarczyk/node-yarn:latest
before_script:
- yarn install
image: kkarczmarczyk/node-yarn:latest
stages:
- lint
- build
- test
eslint:
stage: lint
script:
- yarn lint
cache:
untracked: true
key: "$CI_PROJECT_ID"
paths:
- node_modules/
- .yarn
yarn install:
stage: build
script:
- yarn config set cache-folder .yarn
- yarn install
jest:
stage: test
script:
- rm -rf .yarn
- yarn lint
- yarn test
......@@ -10,7 +10,12 @@
"jest": {
"preset": "react-native",
"collectCoverage": true,
"coverageReporters": ["text-summary"]
"coverageReporters": [
"text-summary"
],
"modulePaths": [
".yarn/"
]
},
"dependencies": {
"react": "~15.4.0-rc.4",
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment