forked from GuoYuefei/SyncPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (50 loc) · 964 Bytes
/
.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
language: go
sudo: true
### blacklist
# branches:
# except:
# - legacy
# - experimental
### whitelist
branches:
only:
- master
- deploy
go:
- master
env:
- GO111MODULE=on GOPROXY=https://goproxy.io,direct
before_install:
addons:
apt:
update: true
packages:
- nodejs
- npm
- expect
ssh_known_hosts: 119.29.5.95
install:
- sudo npm install -g n
- sudo npm install -g yarn
- which node
- N_PREFIX=/usr/local #node实际安装位置
- sudo n lts
- PATH=$N_PREFIX/bin:$PATH
# - PATH="$PATH"
script:
## 编译
- bash build.sh
- bash start.sh
- bash stop.sh
#before_deploy:
# - openssl aes-256-cbc -K $encrypted_db2095f63ba3_key -iv $encrypted_db2095f63ba3_iv
# -in deploy_rsa.enc -out deploy_rsa -d
# - eval "$(ssh-agent -s)"
# - chmod 600 deploy_rsa
# - ssh-add deploy_rsa
#deploy:
# provider: script
# script: bash deploy.sh
# # skip_cleanup: true
# on:
# branch: deploy