Skip to content

Commit

Permalink
get latest wiremock
Browse files Browse the repository at this point in the history
  • Loading branch information
tpmcgowan committed Sep 22, 2023
1 parent ab94cd9 commit 338eb5d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,18 @@ jobs:
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Get wiremock
command: curl -o wiremock.jar https://repo1.maven.org/maven2/org/wiremock/wiremock-standalone/3.1.0/wiremock-standalone-3.1.0.jar
name: Get wiremock (latest version)
command: |
LATEST_WIREMOCK_VERSION=$(curl --silent https://repo1.maven.org/maven2/org/wiremock/wiremock-standalone/maven-metadata.xml | sed -n 's/[[:space:]]*<latest>\(.*\)<\/latest>/\1/p')
echo "Wiremock latest version is: $LATEST_WIREMOCK_VERSION"
curl -o wiremock.jar "https://repo1.maven.org/maven2/org/wiremock/wiremock-standalone/$LATEST_WIREMOCK_VERSION/wiremock-standalone-$LATEST_WIREMOCK_VERSION.jar"
- run:
name: Run wiremock
command: java -jar wiremock.jar --port 9091
background: true
# - run:
# name: Wait for wiremock to start
# command: sleep 10
- run:
name: Wait for wiremock to start
command: sleep 5
- run:
name: Run the node app.
command: npm run start-feature
Expand Down

0 comments on commit 338eb5d

Please sign in to comment.