Sha256: f1c329b16cb9f3a98ce8b37809fdd677b577c4f07dbb7aa4fe3c9fc66cda5900

Contents?: true

Size: 880 Bytes

Versions: 138

Compression:

Stored size: 880 Bytes

Contents

#!/usr/bin/env bash

xpurescript=$(dirname "$BASH_SOURCE")
xpurescript=$(readlink -f "$xpurescript/..")
cd "$xpurescript/exercises"

# Calling the script with 'clean' as the first argument
# will cause a fully clean build

clean=no
if [[ "$1" == clean ]]; then
  clean=yes
fi

# Run for all exercises

for exercise in *; do
  if [[ -f $exercise/bower.json ]]; then
    cd $exercise

    echo
    echo -e "\e[1;32m--- [ $exercise ]\e[0;39m"
    echo

    # Clean local caches if clean build was requested
    if [[ $clean == yes ]]; then
      rm -rf bower_components output .pulp-cache
    fi

    # Move the example solution temporarily
    if [[ ! -d src.tmp ]]; then
      mv src src.tmp
      mv examples/src src
    fi

    # Install and test
    bower install
    pulp test

    # Revert to the previous state
    mv src examples/src
    mv src.tmp src

    cd ..
  fi
done

Version data entries

138 entries across 138 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.97 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.96 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.95 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.94 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.93 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.92 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.91 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.90 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.89 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.88 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.87 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.86 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.85 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.84 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.83 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.82 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.81 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.80 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.79 tracks/purescript/bin/test-separate.sh