Skip to content
Snippets Groups Projects
.gitlab-ci.yml 906 B
Newer Older
rhenck's avatar
rhenck committed
stages:
  - install
rhenck's avatar
rhenck committed
  - test
  - build
  - deploy

default:
  image: iqbberlin/ci-node-chromium:latest

install-npm-packages:
  stage: install
  script:
    - npm ci --cache .npm  --prefer-offline
  cache:
    key: aspect-npm-packages
    paths:
      - .npm/
rhenck's avatar
rhenck committed

test-unit:
  stage: test
  needs:
    - install-npm-packages
  before_script:
    - npm ci --cache .npm --prefer-offline
rhenck's avatar
rhenck committed
  script:
    - npm run test
  cache:
    key: aspect-npm-packages
    paths:
      - .npm/

build-packages:
  stage: build
  before_script:
    - npm ci --cache .npm --prefer-offline
  script:
    - npm run build-editor
    - npm run build-player
  artifacts:
    paths:
      - dist/verona-editor-aspect-nightly.html
      - dist/verona-player-aspect-nightly.html
    expire_in: 1 week

deploy:
  stage: deploy
  script:
    - ./scripts/deploy.sh $TESTSTUDIO_USERNAME $TESTSTUDIO_PASSWORD
  only:
    refs:
      - master