Commit 7e37449d authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Add dependencies stage to CI

parent 22b402a5
......@@ -3,17 +3,32 @@ image: node:6
variables:
GRADLE_USER_HOME: $CI_PROJECT_DIR/.gradle
stages:
- dependencies
- validate
cache:
key: $CI_PROJECT_NAME
key: $CI_JOB_NAME
paths:
- .gradle/wrapper/
- .gradle/caches/
before_script:
- yarn install
- .gradle/wrapper/
- .gradle/caches/
stages:
- validate
dependencies:
stage: dependencies
cache:
key: $CI_JOB_NAME
paths:
- $ARTIFACTS_PATH
- $TOOL_CACHE_PATH
artifacts:
expire_in: 1 hour
paths:
- $ARTIFACTS_PATH
script:
- yarn install --lockfile-only
variables:
TOOL_CACHE_PATH: /usr/local/share/.cache/yarn/v1
ARTIFACTS_PATH: node_modules
eslint:
stage: validate
......
Supports Markdown
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