forked from ethereum/mist
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
107 lines (89 loc) · 3.14 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
language: node_js
node_js: '8'
cache:
yarn: true
directories:
- node_modules
- 'interface/.meteor'
sudo: required
branches:
only:
- develop
- master
matrix:
include:
# WINDOWS cross-built from linux
- os: linux
dist: trusty
env:
- GULP_PLATFORM=win
addons:
apt:
packages:
- icnsutils
- graphicsmagick
- xz-utils
- nsis
- g++-multilib
sources:
- mono
before_install:
- sudo dpkg --add-architecture i386 && sudo add-apt-repository ppa:ubuntu-wine/ppa -y
- sudo apt-get update -q
- sudo apt-get install --no-install-recommends -y mono-devel ca-certificates-mono wine1.8
# LINUX
- os: linux
dist: trusty
env:
- GULP_PLATFORM=linux
addons:
apt:
packages:
- icnsutils
- graphicsmagick
- xz-utils
- gcc-multilib
- g++-multilib
# MAC
- os: osx
osx_image: xcode8.3 # currently xcode8.1+ doesn't support electron-builder macOS code-signing (https://github.com/electron-userland/electron-builder/issues/820#issuecomment-267777060)
env:
- GULP_PLATFORM=mac
before_install:
- npm install -g yarn # macOS xcode8 image doesn't natively support yarn yet
allow_failures:
- os: osx
fast_finish: true
install:
- echo $PATH
- PATH=$PATH:$HOME/.meteor && curl -L https://raw.githubusercontent.com/arunoda/travis-ci-meteor-packages/1390e0f96162d0d70fc1e60a6b0f4f891a0e8f42/configure.sh | /bin/sh
- export PATH=$PATH:`yarn global bin`
- yarn global add gulp-cli meteor-build-client [email protected]
- yarn
script:
# disable macOS code-signing (production certificate) on develop branch
- if [[ $TRAVIS_BRANCH != "master" ]]; then unset CSC_LINK CSC_KEY_PASSWORD; fi
# windows code-signing on master branch
- if [[ $GULP_PLATFORM == "win" && $TRAVIS_BRANCH == "master" ]]; then export CSC_LINK=$CSC_WIN_LINK && CSC_KEY_PASSWORD=$CSC_WIN_KEY_PASSWORD; fi
# unit test
- if [[ $GULP_PLATFORM == "linux" ]]; then yarn test:unit:once; fi
# build mist
- if [[ $GULP_PLATFORM == "mac" ]]; then travis_wait 60 gulp --$GULP_PLATFORM; fi # increase timeout for slower mac builds
- if [[ $GULP_PLATFORM != "mac" ]]; then gulp --$GULP_PLATFORM; fi
# build wallet if on master branch
- if [[ $TRAVIS_BRANCH == "master" ]]; then travis_wait 60 gulp --wallet --$GULP_PLATFORM; fi
# debug purposes - see what builds were successfully created
- ls -la ~/build/ethereum/mist/dist_mist/dist
# prepare integration tests
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; sleep 3; fi
# currently, tests should run in linux and mac
- if [[ $GULP_PLATFORM != "win" ]]; then gulp test; fi
after_success:
- if [[ $TRAVIS_BRANCH == "master" ]]; then gulp uploadQueue --$GULP_PLATFORM && gulp uploadQueue --wallet --$GULP_PLATFORM; fi
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/33972d9e627a142c57a6
on_success: change
on_failure: always
on_start: never