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
test:
cache: # add cache to 'node_modules' for speeding up builds
paths:
- node_modules/ # Node modules and dependencies
cache: # add cache to 'node_modules' for speeding up builds
paths:
- node_modules/ # Node modules and dependencies
before_script:
- npm install
test:
script:
- npm install
- npm run build
only:
- master # only trigger when 'master' branch is pushed
renovate: # Check dependency update
script:
- npm run renovate
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