-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (50 loc) · 1.47 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
branches:
only:
- master
matrix:
include:
- os: linux
sudo: true
name: electron
language: node_js
dist: trusty
node_js:
- 10
addons:
apt:
update: true
sources:
- sourceline: deb https://dl.yarnpkg.com/debian/ stable main
key_url: https://dl.yarnpkg.com/debian/pubkey.gpg
- sourceline: deb https://dl.google.com/linux/deb/ stable main
key_url: https://dl.google.com/linux/linux_signing_key.pub
- google-chrome
- rabbitmq-trusty
packages:
- yarn
- jq
- gradle
- sshpass
- dos2unix
cache:
npm: false
before_install:
- export SSHPASS=$ALIYUN_PASS
- npm install -g ionic cordova
- npm install electron -g --unsafe-perm=true --allow-root
- npm install electron-packager -g --unsafe-perm=true --allow-root
- npm install electron-installer-dmg -g --unsafe-perm=true --allow-root
# - ionic start mwxing-pm blank --type=angular
install:
# - cd mwxing-pm
# - npm install --save-dev electron
# - npm install --save-dev electron-packager
# - npm install --save-dev electron-installer-dmg
script:
- npm run linux-release
# - cd ..
# - tar -zcvf mwxing-pm.$TRAVIS_BUILD_NUMBER.tar.gz ./mwxing-pm --exclude node_modules
# - sshpass -e scp -o stricthostkeychecking=no mwxing-pm.$TRAVIS_BUILD_NUMBER.tar.gz root@www.guobaa.com:/opt/dev/coverage/mwxing-pm.$TRAVIS_BUILD_NUMBER.tar.gz
env:
global:
- LANG=zh_CN.UTF-8