Skip to content

Commit e191a24

Browse files
authored
Update config.yml
1 parent 5daffe8 commit e191a24

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.circleci/config.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1+
# Common Logic
12
defaults: &defaults
23
steps:
34
- attach_workspace:
45
at: ~/
56
- run:
6-
name: Replace Auth0 test credentials
7-
command: |
7+
name: Prepare environment variables
8+
command: |
89
cd $AUTH0_CFG
910
mv .env.example .env
1011
sed -i 's/{CLIENT_ID}/'$client_id_scopes_none'/g' .env
1112
sed -i 's/{CLIENT_SECRET}/'$client_secret_scopes_none'/g' .env
1213
sed -i 's/{DOMAIN}/'$auth0_domain'/g' .env
1314
sed -i 's/{API_IDENTIFIER}/'$api_identifier'/g' .env
14-
head .env
1515
- run:
1616
name: Background Server
1717
command: cd $AUTH0_CFG && sh exec.sh
1818
background: true
1919
- run:
2020
name: Wait until server is online
2121
command: |
22-
until $(curl --output /dev/null --fail http://localhost:3010/api/public); do
22+
until $(curl --silent --head --output /dev/null --fail http://localhost:3010/api/public); do
2323
sleep 5
2424
done
2525
- run:
@@ -38,7 +38,6 @@ defaults: &defaults
3838
echo "AUTH0_CLIENT_SECRET_4=$client_secret_scopes_readwrite" >> .env
3939
echo "API_URL=http://localhost:3010" >> .env
4040
npm install
41-
head .env
4241
- run:
4342
name: Execute automated tests
4443
command: cd test && npm test
@@ -49,7 +48,9 @@ jobs:
4948
machine: true
5049
steps:
5150
- checkout
52-
- run: git clone https://github.com/auth0-samples/api-quickstarts-tests test
51+
- run:
52+
name: Clone test script
53+
command: git clone https://github.com/auth0-samples/api-quickstarts-tests test
5354
- persist_to_workspace:
5455
root: ~/
5556
paths:
@@ -61,7 +62,6 @@ jobs:
6162
- AUTH0_CFG: 00-Starter-Seed
6263
- SAMPLE_PATH: 00-Starter-Seed
6364
<<: *defaults
64-
6565
workflows:
6666
version: 2
6767
API-Tests:

0 commit comments

Comments
 (0)