-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
66 lines (59 loc) · 1.39 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
matrix:
include:
- os: osx
osx_image: xcode9.3
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- USE_HARD_LINKS=false
if: tag IS present
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
- $HOME/.npm/_prebuilds
- os: linux
dist: trusty
sudo: required
services: docker
env:
- DEPLOY_RELEASE=true
cache:
directories:
- node_modules
- $HOME/.npm/_prebuilds
language: node_js
node_js: '10'
install: npm install
before_script:
- chmod +x ./tools/test-{linux,osx}.sh
script:
- ./tools/test-linux.sh
- ./tools/test-osx.sh
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: $AWS_S3_BUCKET
local_dir: dist
skip_cleanup: true
acl: public_read
on:
branch: develop
condition: $DEPLOY_RELEASE = true
- provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: $AWS_S3_PROD_BUCKET
local_dir: dist
skip_cleanup: true
acl: public_read
on:
branch: master
condition: $DEPLOY_RELEASE = true
notifications:
slack:
secure: $SLACK_NOTIFICATIONS