UNPKG

1.33 kBYAMLView Raw
1# Use Node.js 8
2language: node_js
3node_js:
4 - 8
5
6# Require docker servie for building images during tests
7services:
8 docker
9
10# Install code signing tool
11addons:
12 apt:
13 sources:
14 - sourceline: ppa:likemartinma/osslsigncode
15 packages:
16 - osslsigncode
17
18# Decrypt code signing certificates (see https://docs.travis-ci.com/user/encrypting-files/)
19before_install:
20 - openssl aes-256-cbc -K $encrypted_1d93d61b46d3_key -iv $encrypted_1d93d61b46d3_iv -in win-cert.p12.enc -out win-cert.p12 -d
21
22# Do linting, coverage, and build docs (to upload to Github pages)
23script:
24 - make lint
25 - make cover
26 - make docs
27
28# Upload test coverage to codecov
29# See https://docs.codecov.io/v5.0.0/docs/about-the-codecov-bash-uploader
30after_success:
31 - bash <(curl -s https://codecov.io/bash)
32
33# Prevent Github Pages from using Jekyll
34# which causes docs files starting with undescores to be ignored
35before_deploy:
36 - touch docs/.nojekyll
37
38deploy:
39 # Deploy a new version of NPM package and create a Github release
40 - provider: script
41 skip_cleanup: true
42 script:
43 - npm run semantic-release
44
45 # Deploy documentation to Github Pages
46 # See https://docs.travis-ci.com/user/deployment/pages/
47 - provider: pages
48 skip-cleanup: true
49 github-token: $GITHUB_TOKEN
50 local-dir: docs
51 on:
52 branch: master