15 lines
307 B
Bash
Executable File
15 lines
307 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [ -f config/consul.yml ]; then # canvas is running in docker
|
|
docker-compose run --rm --no-deps \
|
|
-e RAILS_ENV=test \
|
|
web bundle exec rspec pact/spec \
|
|
--tag pact --format doc
|
|
else
|
|
RAILS_ENV=test \
|
|
bundle exec rspec pact/spec \
|
|
--tag pact --format doc
|
|
fi
|