#!/usr/bin/env bash
set -e
./gradlew --version

# Clean up any left-over files from a previous invocation, to avoid configlet
# erroring when it finds an unexpected directory inside exercises.
rm -rf ./exercises/build

echo ""
echo ">>> Running configlet..."
bin/fetch-configlet
bin/configlet .

pushd exercises
echo ""
echo ">>> Running tests..."
TERM=dumb ../gradlew check compileStarterSourceKotlin --continue
popd


#!/usr/bin/env bash
set -e
./gradlew --version

# Clean up any left-over files from a previous invocation, to avoid configlet
# erroring when it finds an unexpected directory inside exercises.
rm -rf ./exercises/build

echo ""
echo ">>> Running configlet..."
bin/fetch-configlet
bin/configlet lint .

pushd exercises
echo ""
echo ">>> Running tests..."
TERM=dumb ../gradlew check compileStarterSourceKotlin --continue
popd


Call configlet subcommand on CI
Call configlet subcommand on CI

This changes configlet to pass a subcommand.

For now, we've released a version of configlet which handles both the old command:

    configlet path/to/track

as well as the new command:

    configlet lint path/to/track

This will let us update all the travis files to include the subcommand before we
release the version of configlet that requires the subcommand.
