Sha256: 7880795613f2599797fccd5b50b1e28b877f77d4c63c7a0d19ad5b1ca239d1fe
Contents?: true
Size: 688 Bytes
Versions: 5
Compression:
Stored size: 688 Bytes
Contents
#!/usr/bin/env bash function print_results() { exit_code=$? set +e if [[ "$exit_code" == "0" ]]; then echo "Success! Open http://pact-broker.docker to view your published pact file." else echo "Oops! Something went wrong." fi docker cp contracts:/usr/src/app/log . &> /dev/null docker cp contracts:/usr/src/app/pacts . &> /dev/null docker rm -f contracts &> /dev/null docker-compose rm -fv app &> /dev/null } trap print_results INT TERM EXIT set -e rm -rf pacts sha="$(git rev-parse --short HEAD)" docker-compose run --name contracts -e SHA="${sha}" app bash -l -c \ "bundle && bundle exec rspec --tag pact && bundle exec rake broker:pact:publish:local"
Version data entries
5 entries across 5 versions & 1 rubygems