diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7dfe10bc..dab08f04 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,15 +11,28 @@ stages: - test - deploy -build: +build:build: stage: build script: - npm install - npm run build -build:image: +test:audit: + stage: test + script: + - npm audit + +test:mocha: + stage: test + script: + - npm test + +publish:image: image: docker:stable - stage: build + dependencies: + - build + - test + stage: publish variables: DOCKER_DRIVER: overlay2 services: @@ -35,17 +48,7 @@ build:image: only: - /^v[0-9]+\.[0-9]+\.[0-9]+$/ -audit: - stage: test - script: - - npm audit - -mocha: - stage: test - script: - - npm test - -pages: +deploy:pages: stage: deploy script: - npm run documentation