mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-01-09 06:38:15 +01:00
ci: Remove CircleCI
This commit is contained in:
parent
90bb604d74
commit
2f2b33391a
@ -1,107 +0,0 @@
|
|||||||
version: 2.1
|
|
||||||
|
|
||||||
executors:
|
|
||||||
linux_alpine:
|
|
||||||
docker:
|
|
||||||
- image: alpine:latest
|
|
||||||
environment:
|
|
||||||
TERM: xterm
|
|
||||||
|
|
||||||
commands:
|
|
||||||
setup:
|
|
||||||
description: "Set up the environment needed to test and run the scripts."
|
|
||||||
steps:
|
|
||||||
- run:
|
|
||||||
name: "APK: Add repository."
|
|
||||||
command: |
|
|
||||||
printf "\n%s\n" "http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
|
|
||||||
printf "\n%s\n" "http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
|
|
||||||
- run:
|
|
||||||
name: "APK: Update cache."
|
|
||||||
command: apk update
|
|
||||||
- run:
|
|
||||||
name: "Setup: Install build packages."
|
|
||||||
command: apk add git openssh bash python3 diffutils ca-certificates curl shfmt
|
|
||||||
- run:
|
|
||||||
name: "Setup: Install test packages."
|
|
||||||
command: apk add util-linux coreutils fish
|
|
||||||
- run:
|
|
||||||
name: "Setup: Install runtime packages."
|
|
||||||
command: apk add bat ripgrep ncurses
|
|
||||||
|
|
||||||
build:
|
|
||||||
description: "Build the self-contained scripts."
|
|
||||||
parameters:
|
|
||||||
minify:
|
|
||||||
type: string
|
|
||||||
default: "lib"
|
|
||||||
manuals:
|
|
||||||
type: string
|
|
||||||
default: "false"
|
|
||||||
steps:
|
|
||||||
- run:
|
|
||||||
name: "Build"
|
|
||||||
command: ./build.sh --minify=<<parameters.minify>> --manuals=<<parameters.manuals>> --no-verify
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
executor: linux_alpine
|
|
||||||
steps:
|
|
||||||
- setup
|
|
||||||
- checkout
|
|
||||||
- build:
|
|
||||||
minify: "all"
|
|
||||||
manuals: "true"
|
|
||||||
- build:
|
|
||||||
minify: "all"
|
|
||||||
manuals: "true"
|
|
||||||
- store_artifacts:
|
|
||||||
path: bin
|
|
||||||
- store_artifacts:
|
|
||||||
path: man
|
|
||||||
|
|
||||||
test:
|
|
||||||
executor: linux_alpine
|
|
||||||
steps:
|
|
||||||
- setup
|
|
||||||
- checkout
|
|
||||||
- build:
|
|
||||||
minify: "all"
|
|
||||||
- run:
|
|
||||||
name: "Test: Unit Tests / Snapshots"
|
|
||||||
command: ./test.sh --verbose --strict --snapshot:show
|
|
||||||
|
|
||||||
test-consistency:
|
|
||||||
executor: linux_alpine
|
|
||||||
steps:
|
|
||||||
- setup
|
|
||||||
- checkout
|
|
||||||
- build:
|
|
||||||
minify: "all"
|
|
||||||
- run:
|
|
||||||
name: "Test: Consistency"
|
|
||||||
command: ./test.sh --compiled --verbose --snapshot:show
|
|
||||||
|
|
||||||
test-symlink:
|
|
||||||
executor: linux_alpine
|
|
||||||
steps:
|
|
||||||
- setup
|
|
||||||
- checkout
|
|
||||||
- run:
|
|
||||||
name: "Symlink"
|
|
||||||
command: ln -s "$PWD/src/batgrep.sh" /tmp/batgrep
|
|
||||||
- run:
|
|
||||||
name: "Test: Symlink"
|
|
||||||
command: /tmp/batgrep 'a' >/dev/null
|
|
||||||
|
|
||||||
workflows:
|
|
||||||
version: 2
|
|
||||||
default:
|
|
||||||
jobs:
|
|
||||||
- build
|
|
||||||
- test:
|
|
||||||
requires: [build]
|
|
||||||
- test-consistency:
|
|
||||||
requires: [build, test]
|
|
||||||
- test-symlink:
|
|
||||||
requires: [build]
|
|
Loading…
Reference in New Issue
Block a user