-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.travis.yml
84 lines (84 loc) · 1.9 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
language: node_js
node_js:
- '10.14.1'
dist: trusty
sudo: required
before_script:
- "sh -e /etc/init.d/xvfb start"
- sleep 3
- 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:all
- |
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
env:
global:
- CXX=g++-4.8 CC=gcc-4.8
addons:
chrome: stable
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
- jdk_switcher use oraclejdk8
- 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: "[email protected]"
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