Files
openstapps/.gitlab-ci.yml
2018-12-11 22:11:50 +01:00

60 lines
994 B
YAML

image: registry.gitlab.com/openstapps/app
stages:
- setup
- build
- test
setup:
image: registry.gitlab.com/openstapps/projectmanagement/builder
stage: setup
only:
- schedules
variables:
DOCKER_DRIVER: overlay2
image: registry.gitlab.com/openstapps/projectmanagement/builder
services:
- docker:dind
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
- docker build -t registry.gitlab.com/openstapps/app .
- docker push registry.gitlab.com/openstapps/app
tags:
- docker
build:
stage: build
script:
- npm install
- npm run build
artifacts:
paths:
- node_modules
- www
tags:
- docker
unit:
stage: test
script:
- npm run test -- --watch=false --no-progress --code-coverage
artifacts:
paths:
- coverage
tags:
- docker
e2e:
stage: test
script:
- npm run e2e
tags:
- docker
audit:
stage: test
script:
- npm audit
tags:
- docker