forked from powerpook/weaver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (48 loc) · 1.91 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
matrix:
include:
- os: osx
osx_image: xcode9.4
language: node_js
node_js: '10'
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
addons:
homebrew:
packages:
- wine
- snapcraft
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
script:
- yarn install
- CI=true yarn test --passWithNoTests --ci
- |
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then
yarn build-desktop
echo \{\"defaultLocale\":\"en-US\",\"networks\":[\{\"key\":\"prebuilt_localnet\",\"name\":\"IBAX LocalHost Network\",\"networkID\":1,\"honorNodes\":[\"http://localhost:7079\"]\}]\} > ./build/app/settings.json
yarn release -ml
yarn release -w
fi
- yarn build
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
before_deploy:
- echo '<!DOCTYPE html><html><head><meta charset=utf-8><title>IBAX</title><script type="text/javascript">var segmentCount=0;var l=window.location;l.replace(l.protocol+"//"+l.hostname+(l.port?":"+l.port:"")+l.pathname.split("/").slice(0,1+segmentCount).join("/")+"/?p=/"+l.pathname.slice(1).split("/").slice(segmentCount).join("/").replace(/&/g,"~and~")+(l.search?"&q="+l.search.slice(1).replace(/&/g,"~and~"):"")+l.hash);</script></head><body></body></html>' > ./build/404.html
- echo \{\"defaultLocale\":\"en-US\",\"networks\":[\{\"key\":\"prebuilt_localnet\",\"name\":\"IBAX LocalHost Network\",\"networkID\":1,\"honorNodes\":[\"http://localhost:7079\"]\}]\} > ./build/settings.json
deploy:
provider: pages
skip-cleanup: true
keep-history: true
target-branch: gh-pages
local-dir: build
fqdn: weaver.ibsc.one
github-token: $GH_TOKEN
on:
branch: master
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"