image: name: node:12.14.1 stages: - build - test - release cache: paths: - node_modules/ # ---------- BUILD-APP ----------- install-dependencies: stage: build script: - echo -e "Install NPM dependencies" - npm ci except: - tags - triggers # ---------- TESTS ----------- test-lint: stage: test image: docker:19.03.12 variables: DOCKER_HOST: tcp://docker:2375/ DOCKER_DRIVER: overlay2 services: - docker:19.03.12-dind script: - apk add --no-cache npm git bash - ./lint-shell-scripts.sh only: - develop - master test-python: stage: test image: python:3.6 script: - git ls-files | grep -E '^tests/.*\.py$' | xargs python3 -m unittest only: - develop - master # ---------- DEPLOY ----------- release: stage: release script: - npx semantic-release only: - master