-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (39 loc) · 1.22 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
dist: bionic
language: node_js
node_js:
- '10.15.3'
install:
- npm install -g codecov coveralls
jobs:
include:
- stage: test
script:
- (cd core && npm i && npm run build && npm run tslint && npm test && npm run coverage)
- (cd client && npm i && npm run tslint && npm test)
- (cd server && npm i && npm run tslint && npm run build-tests && npm test && npm run coverage)
- codecov
- stage: client-docs
script: (cd client && npm i && npm run docs && cd docs && touch .nojekyll)
deploy:
provider: pages
skip_cleanup: true
github_token: $DEPLOY_GITHUB_PAGES
keep_history: true
local_dir: client/docs
repo: rolznz/infinitris2-client-docs
on:
branch: master
target_branch: master
- stage: server-docs
script:
- (cd server && npm i && npm run docs && cd docs && touch .nojekyll)
deploy:
provider: pages
skip_cleanup: true
github_token: $DEPLOY_GITHUB_PAGES
keep_history: true
local_dir: server/docs
repo: rolznz/infinitris2-server-docs
on:
branch: master
target_branch: master