Files
openstapps/.gitlab-ci.yml
2019-03-04 11:55:30 +01:00

64 lines
1.0 KiB
YAML

image: registry.gitlab.com/openstapps/app
stages:
- setup
- build
- test
- docs
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
unit:
stage: test
script:
- npm run test -- --watch=false --no-progress --code-coverage
artifacts:
paths:
- coverage
e2e:
stage: test
script:
- npm run e2e
audit:
stage: test
script:
- npm audit
pages:
stage: docs
script:
- npm run documentation
- mv docs public
only:
- master
artifacts:
paths:
- public