Sha256: bc18b722c502181419021ec1c6e302437e7a5b2221288d2b953d03b667c68269

Contents?: true

Size: 510 Bytes

Versions: 2

Compression:

Stored size: 510 Bytes

Contents

#!/bin/bash -xe

iid=slosilo-test-$(date +%s)

docker build -t $iid -f - . << EOF
  FROM ruby:3.0
  WORKDIR /app
  COPY Gemfile slosilo.gemspec ./
  RUN bundle
  COPY . ./
  RUN bundle
EOF

cidfile=$(mktemp -u)
docker run --cidfile $cidfile -v /app/spec/reports $iid bundle exec rake jenkins || :

cid=$(cat $cidfile)

docker cp $cid:/app/spec/reports spec/
docker cp $cid:/app/coverage spec

docker rm $cid

# untag, will use cache next time if available but no junk will be left
docker rmi $iid

rm $cidfile

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slosilo-3.0.1 test.sh
slosilo-3.0.0 test.sh