Skip to content

Commit c763b11

Browse files
authored
Move publish verify step to separate job (#472)
Needed for pusblish many modules in a row in one job. Relates-To: OLPEDGE-2580 Signed-off-by: Yaroslav Stefinko <[email protected]>
1 parent 433ac5b commit c763b11

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,11 @@ deploy:
6161
cleanup: false
6262
on:
6363
branch: master
64-
condition: [ $TRAVIS_EVENT_TYPE = api && $allow_publish_npm = true && $allow_publish_write = true ]
64+
condition: [ $TRAVIS_EVENT_TYPE = api && $allow_publish_npm = true && $allow_publish_write = true ]
65+
- provider: script
66+
script: $WORKSPACE/scripts/publish-packages.sh -verify
67+
cleanup: false
68+
on:
69+
branch: master
70+
condition: [ $TRAVIS_EVENT_TYPE = api && $allow_publish_npm = true && $allow_publish_verify = true ]
6571

scripts/publish-packages.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,17 @@ while [[ $# -gt 0 ]]; do
5151
# olp-sdk-dataservice-write publish
5252
cd @here/olp-sdk-dataservice-write && npm install && npm publish && cd -
5353
;;
54+
-verify)
55+
# verify all published
56+
echo 'Publish verification...'
57+
yarn
58+
yarn bootstrap
59+
npm run --silent build
60+
npm run --silent http-server-testing-bundles & npm run --silent test-published-bundles
61+
echo 'Publish verification done! '
62+
;;
5463
esac
5564
# Shift after checking all the cases to get the next option
5665
shift
5766
done
58-
echo 'Publish done! To be verified in 1m. ...'
59-
sleep 60
60-
61-
echo 'Publish verification...'
62-
yarn
63-
yarn bootstrap
64-
npm run --silent build
65-
npm run --silent http-server-testing-bundles & npm run --silent test-published-bundles
66-
echo 'Publish verification done! '
67+
echo 'Publish done!'

0 commit comments

Comments
 (0)