mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-06-24 14:01:21 +02:00
Fixed CI tests, hopefully.
This commit is contained in:
parent
2633149c04
commit
9dbb62c015
@ -4,6 +4,8 @@ executors:
|
|||||||
linux_alpine:
|
linux_alpine:
|
||||||
docker:
|
docker:
|
||||||
- image: alpine:latest
|
- image: alpine:latest
|
||||||
|
environment:
|
||||||
|
TERM: xterm
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
setup:
|
setup:
|
||||||
@ -20,7 +22,7 @@ commands:
|
|||||||
command: apk add bash python2
|
command: apk add bash python2
|
||||||
- run:
|
- run:
|
||||||
name: "Setup: Install runtime packages."
|
name: "Setup: Install runtime packages."
|
||||||
command: apk add bat ripgrep
|
command: apk add bat ripgrep ncurses
|
||||||
|
|
||||||
build:
|
build:
|
||||||
description: "Build the self-contained scripts."
|
description: "Build the self-contained scripts."
|
||||||
@ -35,7 +37,6 @@ commands:
|
|||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
executor: linux_alpine
|
executor: linux_alpine
|
||||||
steps:
|
steps:
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,7 @@
|
|||||||
._*
|
._*
|
||||||
|
|
||||||
# Project
|
# Project
|
||||||
|
/.circleci/.config.yml
|
||||||
.download
|
.download
|
||||||
bin
|
bin
|
||||||
|
|
||||||
|
@ -4,6 +4,11 @@ SCRIPT="$1"
|
|||||||
DIR_SRC="${HERE}/../../src"
|
DIR_SRC="${HERE}/../../src"
|
||||||
DIR_BIN="${HERE}/../../bin"
|
DIR_BIN="${HERE}/../../bin"
|
||||||
|
|
||||||
|
export BAT_PAGER=""
|
||||||
|
export PAGER="cat"
|
||||||
|
export TERM="xterm"
|
||||||
|
export LANG="en_US.UTF-8"
|
||||||
|
|
||||||
shift
|
shift
|
||||||
case "$TEST_RUNNER_USE" in
|
case "$TEST_RUNNER_USE" in
|
||||||
src)
|
src)
|
||||||
|
@ -30,7 +30,7 @@ fail() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
DIFF)
|
DIFF)
|
||||||
printf "\x1B[31m%s\x1B[0m\n" "$1"
|
printf "\x1B[33m%s\x1B[0m\n" "$2"
|
||||||
printf "\x1B[33mDifference:\x1B[0m\n"
|
printf "\x1B[33mDifference:\x1B[0m\n"
|
||||||
bat --style=plain -l diff -
|
bat --style=plain -l diff -
|
||||||
;;
|
;;
|
||||||
@ -61,7 +61,7 @@ case "$1" in
|
|||||||
if [ -z "$SNAPSHOT_DIFF" ]; then
|
if [ -z "$SNAPSHOT_DIFF" ]; then
|
||||||
pass
|
pass
|
||||||
else
|
else
|
||||||
fail DIFF "The current revision does not match the snapshot."
|
fail DIFF "The current revision does not match the snapshot." <<< "$SNAPSHOT_DIFF"
|
||||||
fi
|
fi
|
||||||
};;
|
};;
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ case "$1" in
|
|||||||
if [ -z "$SNAPSHOT_DIFF" ]; then
|
if [ -z "$SNAPSHOT_DIFF" ]; then
|
||||||
pass
|
pass
|
||||||
else
|
else
|
||||||
fail DIFF "The current built and executed scripts act differently."
|
fail DIFF "The current built and executed scripts act differently." <<< "$SNAPSHOT_DIFF"
|
||||||
fi
|
fi
|
||||||
};;
|
};;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user