forked from MephistoDemon/mysterion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (82 loc) · 2.53 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
osx_image: xcode9.2
os: osx
sudo: required
language: js
cache:
directories:
- node_modules
- "$HOME/.electron"
- "$HOME/.cache"
before_cache:
- rm -rf node_modules/.yarn-integrity
addons:
apt:
packages:
- libgnome-keyring-dev
- icnsutils
install:
- nvm install 9
- curl -o- -L https://yarnpkg.com/install.sh | bash
- source ~/.bashrc
- yarn global add xvfb-maybe
- MYSTERIUM_CLIENT_PREVENT_LOCAL_INSTALL=true yarn
script:
- yarn ci
before_deploy:
- bash util_scripts/travis-number.sh
- mkdir binaries && mkdir releases
# OS X
- FORCE_DOWNLOAD=1 yarn download:bins:osx
- yarn build
- cp build/MysteriumVPN-*.dmg binaries/MysteriumVPN-latest.dmg
- cp build/MysteriumVPN-*.dmg releases/
# Windows
- FORCE_DOWNLOAD=1 yarn download:bins:win
- yarn build:win
- cp build/MysteriumVPN\ Setup\ *.exe binaries/MysteriumVPN\ Setup\ Latest.exe
- cp build/MysteriumVPN\ Setup\ *.exe releases/
deploy:
# Latest (master branch)
- provider: pages
local-dir: binaries
skip-cleanup: true
github-token: "$GITHUB_API_TOKEN"
keep-history: false
target-branch: mysterium_vpn
repo: MysteriumNetwork/build-artifacts
on:
tags: false
branch: master
# Release-candidate ('release/x.x' release branches)
- provider: pages
local-dir: releases
skip-cleanup: true
github-token: "$GITHUB_API_TOKEN"
keep-history: false
target-branch: mysterium_vpn_rc
repo: MysteriumNetwork/build-artifacts
on:
tags: false
all_branches: true
condition: $TRAVIS_BRANCH =~ ^release/[0-9]+\.[0-9]+$
# Release (tags)
- provider: releases
file_glob: true
file: releases/*
skip_cleanup: true
api_key: "$GITHUB_API_TOKEN"
on:
tags: true
notifications:
slack:
rooms:
- secure: >
MRTSnzKnwmkxR4yz74eT6Cp1lyIZjlAvRssiaFr+OmtQcQlRmmCayKeUSygvaUHrNQgLuc5dzv1DKsdSb/qAE0To+3C3VE+wrZvtw+KyrYIzxG
GQdcNviP5DaTqNo1ah15Vw5Cac823F6K7HIDgBpj2u8dN4R/JEtL52dY8MSRXIGu5IBqxDOA0gpQa+lP4UzRCRo3dx8PvisCx9JhPR0AoPjDOp
luXZjigB5qtqrzB7XczvUXJVMdTm6YXyBT1R3xyQri/77RVEPB/LHFMxNl/ntDVQUb8Wyw+Oyc/mbRjbbNdPaWZAsVqkdUy7f49ZPg91Ja+wwr
L5waUkwiYjeVe/cHLwSVaiAhCS51li0ura1CLKMxF6kBohy6GnRMdJlUE4Yf54uCECKpA+4YVFyCC1/E0h1D6kIvDxpa/mqven2oQwBoh7jz27
JIsTVPlMF/b1swlL+Bt5zqxx+IHyrDmIylLyWhMBBtZ4IO5JLgXP9RIP5Bd/CPfFQcdB13/fN1y8cOP6V7aK4Yjoa3NA0MLeHkZx5JeP1lgtrn
IdM3dB9yo4qiA3y+qzPo8fawW715HRHNlgLnWtT5fAswEECDLCQnUaFLAzrVQmpQXuGK3hJHvBIEjh/NLbQsJ6OVzDGc4kthZSVU2Uq516KiD5
7aGX4NEmu2sFxuuYdiyhaBU=
on_success: change
on_failure: always