Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions api-reports/validate
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")"

[ $# -ne 1 ] && echo "Usage: $0 <scala version>" && exit 1

cd "$(dirname "$0")/.."
sbt -DCI=1 "++$1" dom/scalafix

cd "$(dirname "$0")"
series="${1%.*}"
file="${series/./_}.txt"
echo -n "Validating $file ... "

help='Run `sbt +compile` and check in the differences to the '"$(basename "$0") directory"
help='Run `sbt prePR` and check in the differences to the '"$(basename "$0") directory"

if [ ! -e "$file" ]; then
echo "file not found. $help"
Expand Down