-
-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy path.travis.yml
71 lines (69 loc) · 1.59 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
language: node_js
node_js: '12'
cache:
yarn: true
directories:
- node_modules
- '$HOME/.cache/electron'
- '$HOME/.cache/electron-builder'
install:
- yarn
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
stages:
# - name: test
- name: build
jobs:
include:
# - stage: test
# name: 'test'
# os: linux
# dist: xenial
# script:
# - yarn unit-test
# - yarn int-test
# - yarn build --linux --publish never
- stage: build
name: build_web
os: linux
script:
- yarn build --progress=false
deploy:
provider: netlify
site: $NETLIFY_SITE_ID
auth: $NETLIFY_AUTH_TOKEN
dir: 'dist/'
prod: true
message: 'Travis CI deployment'
edge: true
on:
tags: true
branch: master
- name: build_electron
os: osx
osx_image: xcode10.2
script:
- mkdir -p ~/$TRAVIS_BUILD_NUMBER/mac
- yarn electron:build --publish never
deploy:
- provider: releases
token: $GH_TOKEN
file_glob: true
file:
- "electron/dist/COMPCON*.AppImage"
- "electron/dist/COMPCON*.exe"
- "electron/dist/COMPCON*mac.zip"
on:
tags: true
branch: master
edge: true
- provider: script
on:
tags: true
branch: master
script: bash build_scripts/deploy_butler.sh
edge: true