-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
72 lines (66 loc) · 1.89 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
language: node_js
node_js:
- "10"
stages:
- test
- build
jobs:
include:
- stage: test
name: "Lint"
if: type = push
script:
- npm run lint
- stage: build
name: "Build Linux App"
env:
- DOWNLOAD_ECHO_NODE_URL= "https://echo-bin.s3.eu-central-1.amazonaws.com/echo-linux.0.22.3-rc.1.tar"
- CRYPTO_API_KEY=$CRYPTO_API_KEY
if: tag IS present
script:
- rm -rf node_modules
- npm i
- npm run package-deb-with-download-build
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
file: build/binaries/echo-wallet*
skip_cleanup: true
on:
tags: true
- stage: build
name: "Build Win App"
if: tag IS present
env:
- CRYPTO_API_KEY=$CRYPTO_API_KEY
script:
- rm -rf node_modules
- "docker run -e CRYPTO_API_KEY=$CRYPTO_API_KEY --rm -v ${PWD}:/project -v ${PWD}/.cache/electron:/root/.cache/electron -v ${PWD}/.cache/electron-builder:/root/.cache/electron-builder electronuserland/builder:wine /bin/bash -c \"npm install && npm run package-win\""
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
file: build/binaries/Echo*.exe
skip_cleanup: true
on:
tags: true
- stage: build
os: osx
name: "Build macOS App"
env:
- DOWNLOAD_ECHO_NODE_URL= "https://echo-bin.s3.eu-central-1.amazonaws.com/echo-macos.0.22.3-rc.1.tar"
- CRYPTO_API_KEY=$CRYPTO_API_KEY
if: tag IS present
script:
- rm -rf node_modules
- npm i
- npm run package-mac-with-download-build
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
file: build/binaries/Echo*.dmg
skip_cleanup: true
on:
tags: true