Fixed CI tests, hopefully.

This commit is contained in:
Ethan P 2019-06-19 17:37:16 -07:00
parent 2633149c04
commit 9dbb62c015
No known key found for this signature in database
GPG Key ID: 1F8DF8091CD46FBC
4 changed files with 12 additions and 5 deletions

View File

@ -4,6 +4,8 @@ executors:
linux_alpine:
docker:
- image: alpine:latest
environment:
TERM: xterm
commands:
setup:
@ -20,7 +22,7 @@ commands:
command: apk add bash python2
- run:
name: "Setup: Install runtime packages."
command: apk add bat ripgrep
command: apk add bat ripgrep ncurses
build:
description: "Build the self-contained scripts."
@ -35,7 +37,6 @@ commands:
jobs:
build:
executor: linux_alpine
steps:

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
._*
# Project
/.circleci/.config.yml
.download
bin

View File

@ -4,6 +4,11 @@ SCRIPT="$1"
DIR_SRC="${HERE}/../../src"
DIR_BIN="${HERE}/../../bin"
export BAT_PAGER=""
export PAGER="cat"
export TERM="xterm"
export LANG="en_US.UTF-8"
shift
case "$TEST_RUNNER_USE" in
src)

View File

@ -30,7 +30,7 @@ fail() {
;;
DIFF)
printf "\x1B[31m%s\x1B[0m\n" "$1"
printf "\x1B[33m%s\x1B[0m\n" "$2"
printf "\x1B[33mDifference:\x1B[0m\n"
bat --style=plain -l diff -
;;
@ -61,7 +61,7 @@ case "$1" in
if [ -z "$SNAPSHOT_DIFF" ]; then
pass
else
fail DIFF "The current revision does not match the snapshot."
fail DIFF "The current revision does not match the snapshot." <<< "$SNAPSHOT_DIFF"
fi
};;
@ -72,7 +72,7 @@ case "$1" in
if [ -z "$SNAPSHOT_DIFF" ]; then
pass
else
fail DIFF "The current built and executed scripts act differently."
fail DIFF "The current built and executed scripts act differently." <<< "$SNAPSHOT_DIFF"
fi
};;