-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (54 loc) · 1.21 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
language: node_js
sudo: required
notifications:
email:
on_failure: always
dist: xenial
node_js: stable
cache:
- npm
before_install:
- export TZ='Asia/Shanghai'
- openssl aes-256-cbc -K $encrypted_b7d8153e3775_key -iv $encrypted_b7d8153e3775_iv -in ./build/cxmooc-tools.pem.enc -out ./build/cxmooc-tools.pem -d
- npm install
script:
- npm run docs:build
- npm run build
- npm run tampermonkey
- npm run pack
- cd build/cxmooc-tools && zip ../cxmooc-tools.zip -r ./ && cd ../../
deploy:
- provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file:
- build/tampermonkey.js
- build/*.crx
- build/*.zip
skip_cleanup: true
on:
tags: true
- provider: pages
skip_cleanup: true
committer-from-gh: true
github_token: $GITHUB_TOKEN
local_dir: docs/.vuepress/dist
keep-history: true
target-branch: gh-pages
on:
branch: master
- provider: script
script: node src/tg-bot.js
skip_cleanup: true
on:
branch: develop
- provider: script
script: node src/tg-bot.js
skip_cleanup: true
on:
tags: true
- provider: npm
email: $NPM_EMAIL
api_key: $NPM_KEY
on:
tags: true