-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
60 lines (49 loc) · 2.67 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
language: node_js
node_js:
- '6'
sudo: required
dist: trusty
env:
global:
- secure: TXCnp5nMm7o0vlL8f+0nMIEui3ObFKDL8igCzhMcvsdXOeHfdPpfD4vZvGL3SGMirnyJsdYLkU11VOfkIBknWv6Em7XDSBQAw/edBfsmv+qYvepEXkBAd7DqGBlfKoF42wD7BQemRxc2ZQ6Pd4Us8CwouVYJjjHAPiJT+4UMtTVaq09BVFUh3qcSp81UZHMnswctuZq7OrBJWLHPZIQHE8LIchx1kp+VEYckpXEikxfKzTmDuwNPH094CfVtIBOSIhZo1XechSlhpFusiCafcc2bIUqbd0UzjA+26eKXHF2ppWS5qAzVGl6a2iX6dE5hLu+2GeAvkXdOFMw9ozYALERV2cmY+fw2RrOB08JqgiVFjKWauL9hsgTq2AlF0M5QPVB18B2zYz+JRm/B+lRHzNbnokHM7K6CQTQ80MpIrijD83FLCrxkdnL9hisI+SxWCNOUgonoETsmJ94f7Dd/BPYHI4vJVfz/ub5V7eQPIvlIVavJ5QJDauYtgzHvDCgCAN4SdqqEQgYW9F0Xhemnm8aSpfYFOAw+zKd4tAjutErVfSQFk3VdwvDeEboIk5dXyopOSqtKZVcdIQ5aSKyqcN5Y9gXvk7Pfq/VIL+zjkcN+rpmkTnROfU39PRzP9SwsIw8FdTfs5N4HCeOKvwfXebEwMPRdtssVKMlUnQ+J6us=
branches:
except:
- gh-pages
addons:
apt:
packages:
- xvfb
install:
- export DISPLAY=':99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- npm install npm -g
- npm install electron-builder@next -g
- npm install
- build --version
before_script:
- APP_VERSION="$(node version)" # eg 0.0.1
- RELEASE_VERSION="v$(node version)" # eg v0.0.1
- APP_SHORTNAME="$(node productShortName)" # eg TANet-Roamer
script:
- echo "no test scripts"
#- npm test
before_deploy:
- npm run dist # build
- cd dist
- tar zcvf "${APP_SHORTNAME}-${APP_VERSION}.tar.gz" linux-unpacked # pack tar.gz
- mv "tanetroamer-desktop-${APP_VERSION}-x86_64.AppImage" "${APP_SHORTNAME}-${APP_VERSION}-x86_64.AppImage" # rename AppImage
- cd ..
- export FILE_TO_UPLOAD_TAR_GZ="dist/${APP_SHORTNAME}-${APP_VERSION}.tar.gz"
- export FILE_TO_UPLOAD_APPIMAGE="dist/${APP_SHORTNAME}-${APP_VERSION}-x86_64.AppImage"
deploy:
provider: releases
api_key:
secure: qiMQ9QLZabf7nWuP1nHTlrMSOLUw/cdBVtVei+9NMltVOQmDf58YFY4yT9sUT5L90aATb6bgBGDhae/dN035Wruo0dZm1kQXvC+0eCMr51IJ5ctTUAHTAu646nFSDUUIcB0Fy8nVYDIX4v+ol2swJz/bwRECFOcaqH2dumsuFjv2GkLBzG1ObexMGn1SJyZG4p3425HWkFv1ng+2IAMWCDWtfQjVLMd/bN+aMlE2L+C4T++dwErurroNn7PCOM9wiGt9xYFkL3QT9SIcz8EsWfe2tRsAsOSK+QBMfqYh8lWDcAALgW17VGgUs+2Jmdu4BmmFXwiiiWIG05EwlsNoKPTTU5jOeX56m/508Wp3FYWUxAzlgFkEnwrsFMNuD1wD2p+XcoZIieikCqmlrQUZinUCeVkDYIVaJeerR093MsT+ThX4hvMC1HF6Y8rNut1lY2zcOFgiHK67PGbjwtW2ucLe8/N01Q5dwQF1dVZSc7V9mnOuFO+Qk16vxryaXNNvtOYmlFMLRxhXbb+EPzFcfBtgM8wkztksWhEKQ73UCq45Pj/bMmr5Y8J4AQ1LKOmmjibyr7MVbpZU0zuwN1BK3ipVu67uUxUyk1KoYSrfx2r2df/Ioe4AW/By9v2rqDiWSFnMlAJ3BUWvw5o4waUPTRQu14OcfDzZKP/RUUaRcR8=
file:
- "/home/travis/build/ALiangLiang/TANetRoamer-desktop/${FILE_TO_UPLOAD_TAR_GZ}"
- "/home/travis/build/ALiangLiang/TANetRoamer-desktop/${FILE_TO_UPLOAD_APPIMAGE}"
skip_cleanup: true
on:
branch: master
repo: ALiangLiang/TANetRoamer-desktop
tags: true