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.159 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.158 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.157 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.156 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.155 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.154 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.153 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.152 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.151 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.150 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.149 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.148 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.147 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.146 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.145 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.144 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.143 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.142 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.141 tracks/purescript/bin/test-separate.sh
trackler-2.2.1.140 tracks/purescript/bin/test-separate.sh