Skip to content

Commit 0abb796

Browse files
authored
chore: update CI credentials for external contributors (#444)
1 parent f7009fc commit 0abb796

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.circleci/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ aliases:
2323
name: Run linting tool
2424
command: bundle exec rake rubocop
2525

26+
- &credentials
27+
name: Retrieve temporary Algolia credentials if needed
28+
command: |
29+
if [ "$CIRCLE_PR_REPONAME" ]; then
30+
curl -s https://algoliasearch-client-keygen.herokuapp.com | sh >> $BASH_ENV
31+
fi
32+
2633
- &run_tests
2734
name: Run unit and integration tests
2835
command: |
@@ -73,6 +80,7 @@ jobs:
7380
- restore_cache: *restore_cache
7481
- run: *install_bundler
7582
- save_cache: *save_cache
83+
- run: *credentials
7684
- run: *run_tests
7785

7886
test_jruby:
@@ -88,6 +96,7 @@ jobs:
8896
- restore_cache: *restore_cache
8997
- run: *install_bundler
9098
- save_cache: *save_cache
99+
- run: *credentials
91100
- run: *run_tests
92101

93102
release:

0 commit comments

Comments
 (0)