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 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 allow_failure: true except: - schedules scheduled-audit: stage: test script: - npm audit only: - schedules pages: stage: docs script: - npm run documentation - mv docs public only: - master artifacts: paths: - public