-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
66 lines (64 loc) · 1.48 KB
/
.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: node_js
node_js:
- node
- lts/*
if: branch != typedoc
branches:
except:
- /^untagged/
stages:
- lint
- compile
- test
- name: deploy
if: branch = master
install:
- npm ci
- npm run config:peers
jobs:
include:
- stage: lint
name: tslint
script: npm run lint
- stage: compile
name: tsc
script:
- npm run compile
- npm run compile:browser
- stage: deploy
name: deploy-everything
node_js:
- "8"
script:
- npm run compile
- npm run compile:browser
- node_modules/.bin/npm-cli-login -u $NPM_USER -p $NPM_PASS -e $NPM_EMAIL -s $NPM_SCOPE
- npm run publish:ci
- npm run typedoc:create
after_success:
- .travis/push.sh
deploy:
- provider: pages
skip-cleanup: true
github-token: $GH_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
local-dir: docs
# TODO: find a way to release alpha packages through github releases
# - provider: releases
# api_key: $GH_TOKEN
# file_glob: true
# file: "**/*.tgz"
# prerelease: true
# skip_cleanup: true
# body: "Prerelease"
script:
- npm run compile
- npm run test -- --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
# TODO: enable gitter integration
#notifications:
# webhooks:
# urls:
# - https://webhooks.gitter.im/e/f0777a190c6c7ee611f1
# on_success: change
# on_failure: always
# on_start: never