...
 
Commits (1)
stages:
- install
- test
- build
- deploy
cache:
paths:
......@@ -7,17 +10,39 @@ cache:
- .yarn
install_dependencies:
stage: build
stage: install
script:
- echo "Installing dependencies"
- yarn install
artifacts:
paths:
- node_modules/
lint:
stage: build
stage: test
script:
- echo "Running eslint"
- yarn run lint
artifacts:
paths:
- node_modules/
build:
stage: build
script:
- echo "Building minified production app"
- yarn run build
artifacts:
paths:
- node_modules/
deploy_prod:
stage: deploy
script:
- echo "Deploying to production server"
environment:
name: production
url: http://nn.adamprocter.co.uk
when: manual
only:
- master