forked from ethereum/mist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
191 lines (157 loc) · 4.69 KB
/
config.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
#
# TODO: improve caching
# TODO: fix `xvfb gulp test` command
# TODO: store_test_results
# TODO: docker images
#
defaults_linux: &defaults_linux
working_directory: /home/circleci/mist
docker:
- image: circleci/node:8.9.4-browsers
environment:
# Setting variable to fix node-gyp build error:
# https://github.com/nodejs/node/issues/7173#issuecomment-224772258
- CXX_host: 'g++ -m32'
defaults_mac: &defaults_mac
macos:
xcode: '9.0'
linux_dependencies: &linux_dependencies
name: Linux package dependencies
# Installing multilib (build for 32 and 64 architectures):
# https://www.quora.com/How-do-I-fix-fatal-error-sys-cdefs-h-file-not-found-include-sys-cdefs-h
command: |
sudo apt-get update &&
sudo apt-get install --no-install-recommends -y gcc-multilib g++-multilib icnsutils xz-utils &&
sudo apt-get install graphicsmagick
install_meteor: &install_meteor
name: Installing Meteor
# PATH=$PATH:$HOME/.meteor && curl -L https://raw.githubusercontent.com/arunoda/travis-ci-meteor-packages/1390e0f96162d0d70fc1e60a6b0f4f891a0e8f42/configure.sh | /bin/sh
command: which meteor || curl https://install.meteor.com | /bin/sh
install_node_modules: &install_node_modules
name: Installing node dependencies using yarn
command: yarn
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
<<: *defaults_linux
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
# Setting PATH: https://circleci.com/docs/2.0/env-vars/#setting-path
- run: echo 'export PATH=`yarn global bin`:$PATH' >> $BASH_ENV
- run:
<<: *linux_dependencies
- run:
<<: *install_meteor
- run:
<<: *install_node_modules
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- persist_to_workspace:
root: /home/circleci/
paths:
- mist
mist-linux:
<<: *defaults_linux
steps:
- attach_workspace:
at: /home/circleci/
- run:
<<: *linux_dependencies
- run:
<<: *install_meteor
- run:
<<: *install_node_modules
- run: yarn build:mist --linux
# - run:
# name: Run integration tests
# command: xvfb-run yarn test:e2e
#- run:
#name: Deploy to GitHub releases
#command: if [ $CIRCLE_BRANCH == 'master' ]; then yarn dist:mist --linux; fi
- store_artifacts:
path: dist_mist/release
wallet-linux:
<<: *defaults_linux
steps:
- attach_workspace:
at: /home/circleci/
- run:
<<: *linux_dependencies
- run:
<<: *install_meteor
- run:
<<: *install_node_modules
- run: yarn build:wallet --linux
#- run:
# name: Deploy to GitHub releases
# command: if [ $CIRCLE_BRANCH == 'master' ]; then yarn dist:wallet --linux; fi
- store_artifacts:
path: dist_wallet/release
mist-mac:
<<: *defaults_mac
steps:
- checkout
- run: yarn global add node-gyp
- run:
<<: *install_meteor
- run:
<<: *install_node_modules
- run: yarn build:mist --mac
#- run:
# name: Run integration tests
# command: yarn test:e2e
# - run:
#name: Deploy to GitHub releases
#command: if [ $CIRCLE_BRANCH == 'master' ]; then yarn dist:mist --mac; fi
- store_artifacts:
path: dist_mist/release
wallet-mac:
<<: *defaults_mac
steps:
- checkout
- run: yarn global add node-gyp
- run:
<<: *install_meteor
- run:
<<: *install_node_modules
- run: yarn build:wallet --mac
# - run:
# name: Deploy to GitHub releases
# command: if [ $CIRCLE_BRANCH == 'master' ]; then yarn dist:wallet --mac; fi
- store_artifacts:
path: dist_wallet/release
unit-test:
<<: *defaults_linux
steps:
- attach_workspace:
at: /home/circleci/
- run: << *install_node_modules
- run: yarn test:unit:once
workflows:
version: 2
build_and_test:
jobs:
- build
- mist-linux:
requires:
- build
- wallet-linux:
requires:
- build
- unit-test:
requires:
- build
- wallet-mac
- mist-mac