Commit e94c71bc authored by Wietse Kuipers's avatar Wietse Kuipers
Browse files

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 image: kkarczmarczyk/node-yarn:latest
before_script:
- yarn install
stages: stages:
- lint - build
- test - test
eslint: cache:
stage: lint untracked: true
script: key: "$CI_PROJECT_ID"
- yarn lint paths:
- node_modules/
- .yarn
yarn install:
stage: build
script:
- yarn config set cache-folder .yarn
- yarn install
jest: jest:
stage: test stage: test
script: script:
- rm -rf .yarn
- yarn lint
- yarn test - yarn test
...@@ -10,7 +10,12 @@ ...@@ -10,7 +10,12 @@
"jest": { "jest": {
"preset": "react-native", "preset": "react-native",
"collectCoverage": true, "collectCoverage": true,
"coverageReporters": ["text-summary"] "coverageReporters": [
"text-summary"
],
"modulePaths": [
".yarn/"
]
}, },
"dependencies": { "dependencies": {
"react": "~15.4.0-rc.4", "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