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.119 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.118 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.117 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.116 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.115 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.114 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.113 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.111 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.110 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.109 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.108 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.107 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.106 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.105 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.104 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.103 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.102 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.101 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.100 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.99 tracks/purescript/bin/test-separate.sh