Sha256: b8e6453a2820896283535deeeb2f82b78a1a9d39d401f1745af684fbdb548723

Contents?: true

Size: 354 Bytes

Versions: 213

Compression:

Stored size: 354 Bytes

Contents

#!/bin/sh

if [ $# -eq 0 ]; then
  echo "usage: $0 exercise-slug"
  exit 1
fi

dir=$1

cd $dir

status=0

mv source testbak
mv example source
if ! dub test ; then
  echo "$dir test has failed"
  status=1
fi
# Restore so that if we are running locally,
# we don't accidentally commit the directory moves.
mv source example
mv testbak source

exit $status

Version data entries

213 entries across 213 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/d/bin/test-exercise
trackler-2.2.1.179 tracks/d/bin/test-exercise
trackler-2.2.1.178 tracks/d/bin/test-exercise
trackler-2.2.1.177 tracks/d/bin/test-exercise
trackler-2.2.1.176 tracks/d/bin/test-exercise
trackler-2.2.1.175 tracks/d/bin/test-exercise
trackler-2.2.1.174 tracks/d/bin/test-exercise
trackler-2.2.1.173 tracks/d/bin/test-exercise
trackler-2.2.1.172 tracks/d/bin/test-exercise
trackler-2.2.1.171 tracks/d/bin/test-exercise
trackler-2.2.1.170 tracks/d/bin/test-exercise
trackler-2.2.1.169 tracks/d/bin/test-exercise
trackler-2.2.1.167 tracks/d/bin/test-exercise
trackler-2.2.1.166 tracks/d/bin/test-exercise
trackler-2.2.1.165 tracks/d/bin/test-exercise
trackler-2.2.1.164 tracks/d/bin/test-exercise
trackler-2.2.1.163 tracks/d/bin/test-exercise
trackler-2.2.1.162 tracks/d/bin/test-exercise
trackler-2.2.1.161 tracks/d/bin/test-exercise
trackler-2.2.1.160 tracks/d/bin/test-exercise