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.180 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.179 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.178 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.177 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.176 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.175 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.174 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.173 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.172 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.171 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.170 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.169 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.167 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.166 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.165 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.164 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.163 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.162 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.161 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.160 tracks/purescript/bin/test-separate.sh