Skip to content

Commit a775bbc

Browse files
authored
Add env vars for nightlies to the nightly workflow
1 parent 16d3c0d commit a775bbc

File tree

1 file changed

+32
-11
lines changed

1 file changed

+32
-11
lines changed

.circleci/config.yml

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,22 @@ workflows:
4545
jobs: &basic-jobs
4646
- cache-yarn-linux:
4747
filters: &filters {tags: {only: /.*/}}
48-
- danger:
48+
- danger:
4949
filters: *filters
5050
requires: [cache-yarn-linux]
51-
- flow:
51+
- flow:
5252
filters: *filters
5353
requires: [cache-yarn-linux]
54-
- jest:
54+
- jest:
5555
filters: *filters
5656
requires: [cache-yarn-linux]
57-
- prettier:
57+
- prettier:
5858
filters: *filters
5959
requires: [cache-yarn-linux]
60-
- eslint:
60+
- eslint:
6161
filters: *filters
6262
requires: [cache-yarn-linux]
63-
- data:
63+
- data:
6464
filters: *filters
6565
requires: [cache-yarn-linux]
6666
- ios:
@@ -74,7 +74,16 @@ workflows:
7474
- schedule:
7575
cron: 0 6 * * *
7676
filters: {branches: {only: [master]}}
77-
jobs: *basic-jobs
77+
jobs:
78+
- cache-yarn-linux
79+
- danger: {requires: [cache-yarn-linux]}
80+
- flow: {requires: [cache-yarn-linux]}
81+
- jest: {requires: [cache-yarn-linux]}
82+
- prettier: {requires: [cache-yarn-linux]}
83+
- eslint: {requires: [cache-yarn-linux]}
84+
- data: {requires: [cache-yarn-linux]}
85+
- ios-nightly: {requires: [danger, flow, jest, prettier, eslint, data]}
86+
- android-nightly: {requires: [danger, flow, jest, prettier, eslint, data]}
7887

7988
jobs:
8089
cache-yarn-linux:
@@ -187,12 +196,12 @@ jobs:
187196
- run: yarn run --silent validate-bus-data | tee logs/validate-bus-data
188197
- run: *run-danger
189198

190-
android:
199+
android: &android
191200
# cmd: key is passed to solve a weird issue (see GitHub PR's 2170 and 2173).
192201
# this overrides the thing and forces the container to run /bin/bash as the "command"
193202
# so it doesn't get confused and OOM/exhaust the build resources (don't ask me)
194203
docker: [{image: 'circleci/android:api-27-node8-alpha', cmd: '/bin/bash'}]
195-
environment:
204+
environment: &android-env
196205
task: ANDROID
197206
FASTLANE_SKIP_UPDATE_CHECK: '1'
198207
FASTLANE_DISABLE_ANIMATION: '1'
@@ -221,10 +230,16 @@ jobs:
221230
environment:
222231
GIT_COMMIT_DESC: $(git log --format=oneline -n 1 $CIRCLE_SHA1)
223232
- run: *run-danger
233+
234+
android-nightly:
235+
<<: *android
236+
environment:
237+
<<: *android-env
238+
IS_NIGHTLY: '1'
224239

225-
ios:
240+
ios: &ios
226241
macos: {xcode: '9.0'}
227-
environment:
242+
environment: &ios-env
228243
task: IOS
229244
FASTLANE_SKIP_UPDATE_CHECK: '1'
230245
FASTLANE_DISABLE_ANIMATION: '1'
@@ -252,3 +267,9 @@ jobs:
252267
name: Analyze Fastlane Logfile
253268
command: python2 ./scripts/analyze-gym.py -s 20 < ./logs/build | tee ./logs/analysis || true
254269
- run: *run-danger
270+
271+
ios-nightly:
272+
<<: *ios
273+
environment:
274+
<<: *ios-env
275+
IS_NIGHTLY: '1'

0 commit comments

Comments
 (0)