uhr/.gitlab-ci.yml

52 lines
723 B
YAML
Raw Normal View History

variables:
2016-06-26 22:51:03 +02:00
NPMPATH: "node_modules/.bin"
stages:
- build
- deploy
2016-06-26 22:53:54 +02:00
- clean_after_deploy
2015-07-14 00:06:29 +02:00
Npm, Bower, Grunt:
script:
2015-10-07 19:14:09 +02:00
- npm install
2016-06-26 22:51:03 +02:00
- $NPMPATH/bower install
- $NPMPATH/grunt
2015-07-14 00:06:29 +02:00
tags:
except:
2015-10-07 19:14:09 +02:00
- tags
stage: build
artifacts:
2016-06-26 22:22:09 +02:00
paths:
- dist/
- info/
- resources/
- index.html
- manifest.appcache
staging:
stage: deploy
script: deploy.sh
environment: staging
only:
- develop
variables:
2016-06-26 22:28:07 +02:00
ENVIRON: staging
production:
stage: deploy
script: deploy.sh
environment: production
only:
- master
variables:
2016-06-26 22:28:07 +02:00
ENVIRON: production
2016-06-26 22:53:54 +02:00
clean:
stage: clean_after_deploy
script:
- rm -r node_modules
- rm -r bower_components
when: always