-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (50 loc) · 1.25 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
sudo: false # Stop annoying sudo warnings from travis
language: node_js
node_js:
- v7 # Current
- v6 # LTS
# - v4 # Maintentance, not used by our version of Electron
# Native module support
# We need a C++11 compiler
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
cache:
yarn: true
directories:
- node_modules
# Install what is needed for uploading coverage
before_install:
- yarn global add codacy-coverage codecov
# Now test things
script:
- yarn run test # Generate coverage report and test things
- nyc report --reporter=lcov > coverage.lcov && codecov
- nyc report --reporter=text-lcov | codacy-coverage
before_deploy:
- yarn run build # Transpile
- yarn run docs # Generate docs
- touch docs/.nojekyll
deploy:
# Deploy to npm when new version is good
- provider: npm
skip_cleanup: true
email: $NPM_EMAIL
api_key: $NPM_API_KEY
on:
branch: master
tags: true
node: v6 # The version we use in electron
# Update docs when new version is good
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: docs
on:
branch: develop
node: v6 # The version that should be more stable (although 7.0 is fine)