@@ -2,11 +2,15 @@ aliases:
22 - &publish-command
33 name : Publish
44 command : |
5+ GYP_ARGS=""
6+ if [[ "${ELECTRON_VERSION}" ]]; then
7+ GYP_ARGS="--runtime=electron --target=${ELECTRON_VERSION} --dist-url=https://electronjs.org/headers"
8+ fi
59 COMMIT_MESSAGE=`git log --format=%s -n 1 $CIRCLE_SHA1`
6- ./node_modules/.bin/node-pre-gyp rebuild package testpackage $PRE_GYP_ARGS
10+ ./node_modules/.bin/node-pre-gyp rebuild package testpackage $GYP_ARGS
711 if [[ ${COMMIT_MESSAGE} =~ "[publish binary]" ]]; then
8- ./node_modules/.bin/node-pre-gyp package testpackage $PRE_GYP_ARGS
9- ./node_modules/.bin/node-pre-gyp publish $PRE_GYP_ARGS
12+ ./node_modules/.bin/node-pre-gyp package testpackage $GYP_ARGS
13+ ./node_modules/.bin/node-pre-gyp publish $GYP_ARGS
1014 else
1115 echo "Not a tagged build - not publishing"
1216 fi
@@ -28,7 +32,7 @@ aliases:
2832 - &common-electron-linux
2933 resource_class : large
3034 docker :
31- - image : circleci/node:10.16.0
35+ - image : circleci/node:12.18.4
3236
3337 working_directory : ~/repo
3438
@@ -40,7 +44,7 @@ aliases:
4044 # These are required for electron(-mocha)
4145 - run : sudo apt-get install -y libgtk2.0-0 libgtk-3-dev libxtst6 libxss1 libgconf2-4 libnss3 libasound2
4246 - run : npm install --build-from-source
43- - run : ./node_modules/.bin/electron-rebuild
47+ - run : ./node_modules/.bin/electron-rebuild --version=$ELECTRON_VERSION --dist-url=https://electronjs.org/headers
4448 - run : npm run pretest
4549 - run : xvfb-run ./node_modules/.bin/electron-mocha --timeout 480000
4650 - run : *publish-command
@@ -77,13 +81,53 @@ aliases:
7781 npm install --build-from-source
7882
7983 - run : npm run test
80- - run : ./node_modules/.bin/electron-rebuild
84+ - run :
85+ << : *publish-command
86+
87+ - &common-electron-macos
88+ resource_class : large
89+ macos :
90+ xcode : " 10.2.1"
91+ steps :
92+ - checkout
93+ - run : |
94+ export HOMEBREW_NO_AUTO_UPDATE=1
95+ brew install git-lfs [email protected] || true 96+ - run : git lfs install
97+ - run : git lfs pull
98+ - run :
99+ name : Install Node
100+ command : |
101+ source ~/.bash_profile
102+
103+ # Install the correct Node version
104+ curl --silent -o node.tar.xz https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-darwin-x64.tar.xz
105+ tar xf node.tar.xz
106+ echo 'export NODE_PATH=$HOME/node' >> $BASH_ENV
107+ echo 'export PATH=$NODE_PATH/bin:$PATH' >> $BASH_ENV
108+ source $BASH_ENV
109+ mv node-v$NODE_VERSION-darwin-x64 $NODE_PATH
110+ node -v
111+
112+ - run :
113+ name : Install & Build
114+ command : |
115+ node -v
116+ npm install --build-from-source
117+
118+ - run : ./node_modules/.bin/electron-rebuild --version=$ELECTRON_VERSION --dist-url=https://electronjs.org/headers
119+ - run : npm run pretest
81120 - run : ./node_modules/.bin/electron-mocha --timeout 480000
82121 - run :
83122 << : *publish-command
84123
85124version : 2
86125jobs :
126+ build-14.11.0 :
127+ << : *common-build
128+ docker :
129+ - image : circleci/node:14.11.0
130+
87131 build-12.6.0 :
88132 << : *common-build
89133 docker :
@@ -94,46 +138,47 @@ jobs:
94138 docker :
95139 - image : circleci/node:10.16.0
96140
97- build-8.16.0 :
98- << : *common-build
99- docker :
100- - image : circleci/node:8.16.0
101-
102- build-electron-8.1.1 :
103- << : *common-electron-linux
104- environment :
105- PRE_GYP_ARGS : --runtime=electron --target=8.1.1 --disturl=https://atom.io/download/electron
106-
107- build-electron-7.1.14 :
141+ # Node version should match electron's node version.
142+ # See https://github.com/mapbox/node-sqlite3/pull/1367
143+ build-electron-10.1.2 :
108144 << : *common-electron-linux
145+ docker :
146+ - image : circleci/node:12.16.3
109147 environment :
110- PRE_GYP_ARGS : --runtime=electron --target=7 .1.14 --disturl=https://atom.io/download/electron
148+ ELECTRON_VERSION : " 10 .1.2 "
111149
112- build-electron-6.1.9 :
150+ build-electron-9.3.1 :
113151 << : *common-electron-linux
152+ docker :
153+ - image : circleci/node:12.14.1
114154 environment :
115- PRE_GYP_ARGS : --runtime=electron --target=6.1.9 --disturl=https://atom.io/download/electron
116-
155+ ELECTRON_VERSION : " 9.3.1"
117156
118- build-electron-5.0.6 :
157+ build-electron-8.5.2 :
119158 << : *common-electron-linux
159+ docker :
160+ - image : circleci/node:12.13.0
120161 environment :
121- PRE_GYP_ARGS : --runtime=electron --target=5.0.6 --disturl=https://atom.io/download/electron
162+ ELECTRON_VERSION : " 8.5.2 "
122163
123- build-electron-4.2.6 :
164+ build-electron-7.1.14 :
124165 << : *common-electron-linux
166+ docker :
167+ - image : circleci/node:12.8.1
125168 environment :
126- PRE_GYP_ARGS : --runtime=electron --target=4.2.6 --disturl=https://atom.io/download/electron
169+ ELECTRON_VERSION : " 7.1.14 "
127170
128- build-electron-3 .1.11 :
171+ build-electron-6 .1.9 :
129172 << : *common-electron-linux
173+ docker :
174+ - image : circleci/node:12.6.0 # Issues with 12.4.0
130175 environment :
131- PRE_GYP_ARGS : --runtime=electron --target=3 .1.11 --disturl=https://atom.io/download/electron
176+ ELECTRON_VERSION : " 6 .1.9 "
132177
133- build-electron-2.0.18 :
134- << : *common-electron-linux
178+ build-macos-14.11.0 :
179+ << : *common-macos
135180 environment :
136- PRE_GYP_ARGS : --runtime=electron --target=2.0.18 --disturl=https://atom.io/download/electron
181+ NODE_VERSION : " 14.11.0 "
137182
138183 build-macos-12.6.0 :
139184 << : *common-macos
@@ -145,62 +190,56 @@ jobs:
145190 environment :
146191 NODE_VERSION : " 10.16.0"
147192
148- build-macos-electron-8.1.1 :
149- << : *common-macos
193+ # NODE_VERSION should match electron's node version.
194+ # See https://github.com/mapbox/node-sqlite3/pull/1367
195+ build-macos-electron-10.1.2 :
196+ << : *common-electron-macos
150197 environment :
151- PRE_GYP_ARGS : --runtime=electron --target=8 .1.1 --disturl=https://atom.io/download/electron
152- NODE_VERSION : " 10 .16.0 "
198+ ELECTRON_VERSION : " 10 .1.2 "
199+ NODE_VERSION : " 12 .16.3 "
153200
154- build-macos-electron-7.1.14 :
155- << : *common-macos
201+ build-macos-electron-9.3.1 :
202+ << : *common-electron- macos
156203 environment :
157- PRE_GYP_ARGS : --runtime=electron --target=7.1.14 --disturl=https://atom.io/download/electron
158- NODE_VERSION : " 10.16.0 "
204+ ELECTRON_VERSION : " 9.3.1 "
205+ NODE_VERSION : " 12.14.1 "
159206
160- build-macos-electron-6.1.9 :
161- << : *common-macos
207+ build-macos-electron-8.5.2 :
208+ << : *common-electron- macos
162209 environment :
163- PRE_GYP_ARGS : --runtime=electron --target=6.1.9 --disturl=https://atom.io/download/electron
164- NODE_VERSION : " 10.16 .0"
210+ ELECTRON_VERSION : " 8.5.2 "
211+ NODE_VERSION : " 12.13 .0"
165212
166- build-macos-electron-5.0.6 :
167- << : *common-macos
168- environment :
169- PRE_GYP_ARGS : --runtime=electron --target=5.0.6 --disturl=https://atom.io/download/electron
170- NODE_VERSION : " 10.16.0"
171-
172- build-macos-electron-4.2.6 :
173- << : *common-macos
213+ build-macos-electron-7.1.14 :
214+ << : *common-electron-macos
174215 environment :
175- PRE_GYP_ARGS : --runtime=electron --target=4.2.6 --disturl=https://atom.io/download/electron
176- NODE_VERSION : " 10.16.0 "
216+ ELECTRON_VERSION : " 7.1.14 "
217+ NODE_VERSION : " 12.8.1 "
177218
178- build-macos-electron-3 .1.11 :
179- << : *common-macos
219+ build-macos-electron-6 .1.9 :
220+ << : *common-electron- macos
180221 environment :
181- PRE_GYP_ARGS : --runtime=electron --target=3.1.11 --disturl=https://atom.io/download/electron
182- NODE_VERSION : " 10.16.0"
222+ ELECTRON_VERSION : " 6.1.9"
223+ # Issues with 12.4.0
224+ NODE_VERSION : " 12.6.0"
183225
184226workflows :
185227 version : 2
186228 build_all :
187229 jobs :
230+ - build-14.11.0
188231 - build-12.6.0
189232 - build-10.16.0
190- - build-8.16.0
191- - build-electron-8.1.1
233+ - build-electron-10.1.2
234+ - build-electron-9.3.1
235+ - build-electron-8.5.2
192236 - build-electron-7.1.14
193237 - build-electron-6.1.9
194- - build-electron-5.0.6
195- - build-electron-4.2.6
196- - build-electron-3.1.11
197- - build-electron-2.0.18
198- - build-electron-5.0.6
238+ - build-macos-14.11.0
199239 - build-macos-12.6.0
200240 - build-macos-10.16.0
201- - build-macos-electron-8.1.1
241+ - build-macos-electron-10.1.2
242+ - build-macos-electron-9.3.1
243+ - build-macos-electron-8.5.2
202244 - build-macos-electron-7.1.14
203245 - build-macos-electron-6.1.9
204- - build-macos-electron-5.0.6
205- - build-macos-electron-4.2.6
206- - build-macos-electron-3.1.11
0 commit comments