forked from microsoft/roosterjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 973 Bytes
/
.travis.yml
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
31
32
33
34
35
language: node_js
sudo: required
addons:
firefox: latest
node_js:
- 10
before_install:
- yarn
# - cd publish/samplesite/instrumentation-tests && yarn && cd ../../..
install:
- npm run build:ci
script:
- xvfb-run npm run test
# puppeteer-firefox does not run in travis because it depends on a
# libstdc++6 that is not available in travis.
# See https://github.com/GoogleChrome/puppeteer/pull/3657
# Temporarily disable instrumentation test since it is not stable
# - xvfb-run npm run instrumentation:chrome
cache:
yarn: true
deploy:
# Deploy demo site to gh-pages
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
on:
branch: master
local-dir: ./dist/deploy
# Auto publish if version is changed
- provider: script
script: node tools/build.js publish --token $NPM_TOKEN
skip-cleanup: true
on:
branch: master