Sha256: b148d9998fe0518e2632de9569cf929f5b2efd89f58b523b1472d3105a673813
Contents?: true
Size: 855 Bytes
Versions: 5
Compression:
Stored size: 855 Bytes
Contents
#!/bin/bash -ex : ${RUBY_VERSION=2.2.5} # My local RUBY_VERSION is set to ruby-#.#.# so this allows running locally. RUBY_VERSION=$(cut -d '-' -f 2 <<< $RUBY_VERSION) main() { build start_conjur run_tests } # internal functions build() { # we can get rid of this once we upgrade to docker 17.06+ sed "s/\${RUBY_VERSION}/$RUBY_VERSION/" Dockerfile > Dockerfile.$RUBY_VERSION docker-compose build --pull } start_conjur() { docker-compose pull pg conjur env CONJUR_DATA_KEY="$(docker-compose run -T --no-deps conjur data-key generate)" \ docker-compose up -d conjur trap "docker-compose down" EXIT docker-compose run test ci/wait_for_server.sh } run_tests() { env CONJUR_AUTHN_API_KEY=$(docker-compose exec -T conjur rails r "print Credentials['cucumber:user:admin'].api_key") \ docker-compose run test "$@" } main
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
conjur-cli-6.2.0 | test.sh |
conjur-cli-6.1.0 | test.sh |
conjur-cli-6.0.1 | test.sh |
conjur-cli-6.0.0 | test.sh |
conjur-cli-6.0.0.rc1 | test.sh |