mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-12-04 21:40:44 +01:00
Fixed CI tests, hopefully.
This commit is contained in:
parent
2633149c04
commit
9dbb62c015
@ -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
1
.gitignore
vendored
@ -3,6 +3,7 @@
|
||||
._*
|
||||
|
||||
# Project
|
||||
/.circleci/.config.yml
|
||||
.download
|
||||
bin
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
};;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user