Repository navigation
Expand file tree
/
Copy path.travis.yml
More file actions
74 lines (74 loc) · 1.7 KB
/
Copy path.travis.yml
File metadata and controls
74 lines (74 loc) · 1.7 KB
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
67
68
69
70
71
72
73
74
---
language: node_js
node_js:
- '10.14.1'
dist: focal
services:
- xvfb
before_script:
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- sudo apt-get install graphicsmagick
- sudo apt install firefox
- npm install
- npm install -g gulp-cli
- sudo pip install MarkdownPP
script:
- npm run lint:ci
- |
if [ $TRAVIS_EVENT_TYPE == "cron" ];then
npm test && travis_wait 60 npm run test:all:bs_all
elif $TRAVIS_SECURE_ENV_VARS ;then
if [ $TRAVIS_EVENT_TYPE == "pull_request" ];then
npm run test:vis_reg && travis_wait 60 npm run test:all:bs_essential
else
npm test && travis_wait 60 npm run test:all:bs_essential
fi
else
npm test
fi
cache:
directories:
- node_modules
addons:
chrome: stable
before_install:
- npm run setup
before_deploy:
- gulp build:release
- gulp build:gh_pages
- PACKAGE_VERSION=$(node -p -e "require('./package.json').version")
- npm run build:doc
deploy:
- provider: releases
skip_cleanup: true
api_key: $GITHUB_TOKEN
name: ${PACKAGE_VERSION}
file_glob: true
file: "./dist/cmd-resume*.js"
on:
branch: master
tags: true
- provider: pages
skip_cleanup: true
local_dir: ./tmp
github_token: $GITHUB_TOKEN
target_branch: gh-pages
fqdn: cmd-resume.bbody.io
repo: bbody/CMD-Resume
on:
branch: master
tags: true
- provider: npm
skip_cleanup: true
email: "bbody.project@gmail.com"
api_key: $NPMJS_TOKEN
on:
branch: master
tags: true
- provider: script
script: scripts/doc-release.sh $PACKAGE_VERSION $GH_TOKEN
skip_cleanup: true
on:
branch: master
tags: false