forked from ramboxapp/community-edition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (74 loc) · 2.45 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
sudo: required
language: node_js
node_js:
- $NODE_VERSION
branches:
only:
- /\d+\.\d+\.\d+/
os:
- linux
- osx
cache:
directories:
- node_modules
- $HOME/.electron
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
# native dependencies
- if [ $TRAVIS_OS_NAME == "linux" ]; then
sudo apt-get update -qq;
sudo apt-get install -qq libxml2-dev;
sudo apt-get install -qq libappindicator1;
sudo apt-get install -qq rpm;
fi
install:
- git config --global core.autocrlf input
- git reset --hard HEAD
- npm run sencha:clean
- git clone https://github.com/saenzramiro/rambox-build.git $TRAVIS_BUILD_DIR/build/production/Rambox/
- npm install
- npm uninstall electron-prebuilt
- npm i electron-prebuilt@$ELECTRON
- npm --prefix $TRAVIS_BUILD_DIR/build/production/Rambox/ install $TRAVIS_BUILD_DIR/build/production/Rambox/
script:
- echo $TRAVIS_OS_NAME
- node --version
- npm --version
- npm run build:$TRAVIS_OS_NAME
deploy:
provider: releases
api_key:
secure: F7z4j9xzhpVyfovrf33jbVdW9dwgpIgbn85dxe8y/kZbQ9sAVU8LzoBZ3PlfeXmoV5CnSUa5j/fe8BmPKiG31kgAH7cktsCOgyOLggO1Sy+vnx7RQwwE/jzb7PzEqI2BP6TG/eOfylBxGBInWeaoSRfK3IRAvLHvvxY1eL4Wq/KRaanzMvh+JdCaStIKJSnI/rc9noI7vtOtgHot+F162s1G1k5/UcdbsfXWzotMVsonhlGgB/Jz9srnJpMpxYxaknR8UFPVRzOM5UzzMo64hXRUDnCFlYcTHcSAkvgKHI0SIPIS3kOdvgrYGavPLK2CAteQk7Dy1lHnEixmKPxG7eVAFwleUo8ePR82WXFkv5gacCvcrGrRLQ9nC/ygeMVgC5XxcHq3ykkcrstu5yjC1yEYFs23gA1Z4DIctwq1diyO72/FNxghV5ckN5WtJQs1QTT+Ec2NjLrWgFYuaEHYgAGopzTPN8gT9fyIv/lAq1S/l4P/z3EDS42UL+UTM77gyXSYShCKneDnFC34ATlYNDhJFRzLZ6qJG5UlOwrfXxUYeGUpQZlV41jg+VFWmPDAeQTMjGP5fRA3w1hFobBotBVyrtbcovTb4TFVTKJWOC/0wyiwku7YTY/nqMU/hR4IluTyRh9Z4NMn5xT5UW63OZd4DJvE573JxmJmnPc0fbo=
file_glob: true
file:
- "dist/*.zip"
- "dist/*.deb"
- "dist/*.tar.gz"
- "dist/*.AppImage"
- "dist/*.rpm"
- "dist/mac/*.zip"
- "dist/mac/*.dmg"
skip_cleanup: true
overwrite: true
prerelease: true
on:
repo: saenzramiro/rambox
tags: true
all_branches: true
notifications:
email:
recipients:
on_success: always
on_failure: always
webhooks:
urls:
- https://webhooks.gitter.im/e/0f214eb0d0017d3c5561
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always