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.98 tracks/d/bin/test-exercise
trackler-2.2.1.97 tracks/d/bin/test-exercise
trackler-2.2.1.96 tracks/d/bin/test-exercise
trackler-2.2.1.95 tracks/d/bin/test-exercise
trackler-2.2.1.94 tracks/d/bin/test-exercise
trackler-2.2.1.93 tracks/d/bin/test-exercise
trackler-2.2.1.92 tracks/d/bin/test-exercise
trackler-2.2.1.91 tracks/d/bin/test-exercise
trackler-2.2.1.90 tracks/d/bin/test-exercise
trackler-2.2.1.89 tracks/d/bin/test-exercise
trackler-2.2.1.88 tracks/d/bin/test-exercise
trackler-2.2.1.87 tracks/d/bin/test-exercise
trackler-2.2.1.86 tracks/d/bin/test-exercise
trackler-2.2.1.85 tracks/d/bin/test-exercise
trackler-2.2.1.84 tracks/d/bin/test-exercise
trackler-2.2.1.83 tracks/d/bin/test-exercise
trackler-2.2.1.82 tracks/d/bin/test-exercise
trackler-2.2.1.81 tracks/d/bin/test-exercise
trackler-2.2.1.80 tracks/d/bin/test-exercise
trackler-2.2.1.79 tracks/d/bin/test-exercise