forked from gnosis/MultiSigWallet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
59 lines (58 loc) · 1.49 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
language: node_js
node_js:
- '9'
matrix:
include:
- os: linux
dist: trusty
sudo: required
env:
- DIST='web' # distribution
- os: linux
dist: trusty
sudo: required
env:
- DIST='desktop'
- os: osx
env:
- DIST='desktop'
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev ; fi
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start ; fi
install: npm install && cd dapp && npm install && cd ..
script:
- npm run test-dapp
- npm run test
before_deploy:
- chmod +x prepare_deploy_linux.sh
- ./prepare_deploy_linux.sh
deploy:
- provider: s3
bucket: wallet-development
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
skip_cleanup: true
local_dir: dapp/src
on:
branch: develop
condition: $DIST = web
- provider: s3
bucket: wallet-staging
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
skip_cleanup: true
local_dir: dapp/src
on:
branch: master
condition: $DIST = web
- provider: s3
bucket: wallet-desktop-builds
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
skip_cleanup: true
local_dir: $TRAVIS_BUILD_DIR/dapp/dist/
on:
branch: develop # remember to change it to master
condition: $DIST = 'desktop'