test: only run renovate on schedules

not on master branch push
This commit is contained in:
curben 2018-10-28 18:46:18 +10:30
parent 9f4b85d636
commit 1feecd37a4
1 changed files with 14 additions and 6 deletions

View File

@ -1,17 +1,25 @@
image: node:alpine # Use latest version of Node.js on Alpine image: node:alpine # Use latest version of Node.js on Alpine
test: cache: # add cache to 'node_modules' for speeding up builds
cache: # add cache to 'node_modules' for speeding up builds
paths: paths:
- node_modules/ # Node modules and dependencies - node_modules/ # Node modules and dependencies
script: before_script:
- npm install - npm install
test:
script:
- npm run build - npm run build
only:
- master # only trigger when 'master' branch is pushed
renovate: # Check dependency update
script:
- npm run renovate - npm run renovate
only: only:
- master # this job will affect only the 'master' branch - schedules # only triggered by schedules
# # Uncomment below (and comment/remove above) lines for gitlab pages # # Uncomment below (and comment/remove above) lines for gitlab pages