-
Notifications
You must be signed in to change notification settings - Fork 90
/
.travis.yml
executable file
·44 lines (43 loc) · 976 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
36
37
38
39
40
41
42
43
44
language: node_js
node_js:
- "6"
- "7"
- "8"
- "9"
- "10"
- "11"
- "12"
install: true
sudo: required
services:
- docker
before_install:
- docker run -dit --name emscripten -v $(pwd):/src trzeci/emscripten:sdk-incoming-64bit bash
script:
- npm install --ignore-scripts
- docker exec -it emscripten make
- npm run lint
- npm run test:js
branches:
only:
- master
cache:
directories:
- $HOME/.npm
after_success: npm run test:cov
jobs:
include:
- stage: Deploy website
language: node_js
node_js: "9"
install: true
script:
- git config --global user.email "${GH_EMAIL}"
- git config --global user.name "${GH_NAME}"
- echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
- cd website && npm install && GIT_USER="${GH_NAME}" npm run publish-gh-pages
branches:
only:
- master
if: type = push
after_success: echo "Website online"