stages: - test - packaging - final scheduled_test: stage: test only: - schedules script: - scripts/ci_in_docker.sh tags: - nodejs8 test: stage: test except: - tags - schedules script: - scripts/ci_in_docker.sh tags: - nodejs8 coverage: '/^Statements\s*: (.*)\%/' artifacts: expire_in: 2 weeks when: always untracked: true npm_publish: stage: packaging only: - /.*/@__REPO_NAME__ except: - tags - schedules script: - npm install --dev scripty - npm run npm_publish tags: - nodejs8 rpm: stage: packaging except: - tags - schedules script: - npm install --dev scripty - npm run gitlab:rpm tags: - nodejs8 artifacts: expire_in: 3 days when: always untracked: true git_tag: stage: final only: - /.*/@__REPO_NAME__ except: - tags - schedules script: - npm install --dev scripty - npm run gittag tags: - nodejs8