.gitlab-ci.yml 408 Bytes
Newer Older
1
image: node:8.1.2
2

3 4 5 6
cache:
  paths:
    - node_modules/

7
before_script:
8
  - npm install --silent
9

10
webpack:
11
  stage: build
12 13
  script:
    - npm run build
14

15
mocha:
16
  stage: test
17 18
  script: 
    - npm run test
19

20 21
heroku_deploy:
  stage: deploy
22
  script:
23 24
    - apt update -qq
    - apt install -qq -y ruby
25
    - gem install -q dpl
26
    - dpl --provider=heroku --app=$APP_NAME --api-key=$AUTH_TOKEN
27 28
  only:
    - master