Skip to content
This repository was archived by the owner on Sep 5, 2020. It is now read-only.

Commit 68a299f

Browse files
authored
CircleCI: MacOS builds (#4144)
* Building mac * Fix circleci variable name * Circleci: fixes * Circleci: dependency mgmt * Circleci: tries to fix yarn installation * Enables spectron testing * Disabling faulty xvfb and github upload
1 parent f4ccf5c commit 68a299f

File tree

1 file changed

+71
-23
lines changed

1 file changed

+71
-23
lines changed

.circleci/config.yml

Lines changed: 71 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
#
2-
# TODO: compilation
3-
# TODO: store_artifacts
4-
# TODO: name commands properly
5-
# TODO: mac job
62
# TODO: improve caching
73
# TODO: fix `xvfb gulp test` command
8-
# TODO: windows job
94
# TODO: store_test_results
105
# TODO: docker images
116
#
127

13-
defaults: &defaults
14-
working_directory: /home/circleci/mist
15-
docker:
16-
- image: circleci/node:8.9.4-browsers
17-
environment:
18-
# Setting variable to fix node-gyp build error:
19-
# https://github.com/nodejs/node/issues/7173#issuecomment-224772258
20-
- CXX_host: 'g++ -m32'
8+
defaults_linux: &defaults_linux
9+
working_directory: /home/circleci/mist
10+
docker:
11+
- image: circleci/node:8.9.4-browsers
12+
environment:
13+
# Setting variable to fix node-gyp build error:
14+
# https://github.com/nodejs/node/issues/7173#issuecomment-224772258
15+
- CXX_host: 'g++ -m32'
16+
17+
defaults_mac: &defaults_mac
18+
macos:
19+
xcode: '9.0'
2120

2221
linux_dependencies: &linux_dependencies
2322
name: Linux package dependencies
@@ -45,7 +44,7 @@ install_node_modules: &install_node_modules
4544
version: 2
4645
jobs:
4746
build:
48-
<<: *defaults
47+
<<: *defaults_linux
4948
steps:
5049
- checkout
5150

@@ -76,7 +75,7 @@ jobs:
7675
- mist
7776

7877
mist-linux:
79-
<<: *defaults
78+
<<: *defaults_linux
8079
steps:
8180
- attach_workspace:
8281
at: /home/circleci/
@@ -90,11 +89,19 @@ jobs:
9089

9190
- run: yarn build:mist --linux
9291

92+
# - run:
93+
# name: Run integration tests
94+
# command: xvfb-run yarn test:e2e
95+
96+
#- run:
97+
#name: Deploy to GitHub releases
98+
#command: if [ $CIRCLE_BRANCH == 'master' ]; then yarn dist:mist --linux; fi
99+
93100
- store_artifacts:
94101
path: dist_mist/release
95102

96103
wallet-linux:
97-
<<: *defaults
104+
<<: *defaults_linux
98105
steps:
99106
- attach_workspace:
100107
at: /home/circleci/
@@ -108,19 +115,57 @@ jobs:
108115

109116
- run: yarn build:wallet --linux
110117

118+
#- run:
119+
# name: Deploy to GitHub releases
120+
# command: if [ $CIRCLE_BRANCH == 'master' ]; then yarn dist:wallet --linux; fi
121+
111122
- store_artifacts:
112123
path: dist_wallet/release
113124

114-
spectron-test:
115-
docker:
116-
- image: circleci/node:8.9.4
125+
mist-mac:
126+
<<: *defaults_mac
117127
steps:
118-
- attach_workspace:
119-
at: /home/circleci/
120-
- run: xvfb-run yarn test:e2e
128+
- checkout
129+
- run: yarn global add node-gyp
130+
131+
- run:
132+
<<: *install_meteor
133+
- run:
134+
<<: *install_node_modules
135+
- run: yarn build:mist --mac
136+
137+
#- run:
138+
# name: Run integration tests
139+
# command: yarn test:e2e
140+
141+
# - run:
142+
#name: Deploy to GitHub releases
143+
#command: if [ $CIRCLE_BRANCH == 'master' ]; then yarn dist:mist --mac; fi
144+
145+
- store_artifacts:
146+
path: dist_mist/release
147+
148+
wallet-mac:
149+
<<: *defaults_mac
150+
steps:
151+
- checkout
152+
- run: yarn global add node-gyp
153+
154+
- run:
155+
<<: *install_meteor
156+
- run:
157+
<<: *install_node_modules
158+
- run: yarn build:wallet --mac
159+
160+
# - run:
161+
# name: Deploy to GitHub releases
162+
# command: if [ $CIRCLE_BRANCH == 'master' ]; then yarn dist:wallet --mac; fi
163+
164+
- store_artifacts:
165+
path: dist_wallet/release
121166

122167
unit-test:
123-
<<: *defaults
168+
<<: *defaults_linux
124169
steps:
125170
- attach_workspace:
126171
at: /home/circleci/
@@ -141,3 +186,6 @@ workflows:
141186
- unit-test:
142187
requires:
143188
- build
189+
- wallet-mac
190+
- mist-mac
191+

0 commit comments

Comments
 (0)