Sha256: 28f6ce464402a8e6317cb93c497b35b433bbe9117fb8e3fa47bfd13294c85204

Contents?: true

Size: 506 Bytes

Versions: 1

Compression:

Stored size: 506 Bytes

Contents

#!/bin/bash -xe

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

docker build -t $iid -f - . << EOF
  FROM ruby
  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

1 entries across 1 versions & 1 rubygems

Version Path
slosilo-2.2.2 test.sh