cache in CI only in build

This commit is contained in:
Sebastian Frank
2017-08-31 22:58:06 +02:00
parent 36cd341d44
commit b0102178fc

View File

@@ -1,8 +1,3 @@
cache:
paths:
- node_modules/
stages: stages:
- build - build
# - test # - test
@@ -17,6 +12,9 @@ build_ui:
- git submodule update --init - git submodule update --init
- npm install - npm install
- npm run build - npm run build
cache:
paths:
- node_modules/
artifacts: artifacts:
name: "basispanel-ui-$CI_COMMIT_REF_NAME" name: "basispanel-ui-$CI_COMMIT_REF_NAME"
expire_in: 1h expire_in: 1h