summaryrefslogtreecommitdiff
path: root/priv/static/metrics-graphics-3.0-alpha3/.travis.yml
blob: 403c480667952bf343ce2b42f5901dde13eab672 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
sudo: required
language: node_js
node_js:
  - "8"
addons:
    chrome: stable
before_script:
    - sudo chown root /opt/google/chrome/chrome-sandbox
    - sudo chmod 4755 /opt/google/chrome/chrome-sandbox
script:
  - npm run lint
  - npm run test-ci
before_deploy:
  - cp dist/metricsgraphics.css dist/metricsgraphics.min.js .
  - cp -r examples/* .
  - cp -r src/js/* js
deploy:
  - provider: npm
    email: wrlach@gmail.com
    api_key:
      secure: LtS+7V8yMNMRelHAFv+ms71pYJzocX+jTePtUvNNY4k2j2b4rUkBYU0vSAmBbzOnSaIf5X8dXVzxEtYaMIliUr0vVbFvooK4GF6p4X/043dq2MRnm1GUdtG4byDd3JlYNyNo4REgmnpcARNLf3bffl3kXkb4JCvxbAWk/yuj2V4=
    on:
      tags: true
      repo: metricsgraphics/metrics-graphics
  - provider: pages
    skip-cleanup: true
    github-token: $GITHUB_TOKEN
    on:
      tags: true
      branch: master