Format with redhat.vscode-yaml

This commit is contained in:
Éfrit 2020-03-31 23:49:34 +02:00
parent 6b57f3ff3c
commit 6ed8696abd

View File

@ -12,22 +12,22 @@ commands:
description: "Set up the environment needed to test and run the scripts." description: "Set up the environment needed to test and run the scripts."
steps: steps:
- run: - run:
name: "APK: Add repository." name: "APK: Add repository."
command: | 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/testing" >> /etc/apk/repositories
printf "\n%s\n" "http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories printf "\n%s\n" "http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
- run: - run:
name: "APK: Update cache." name: "APK: Update cache."
command: apk update command: apk update
- run: - run:
name: "Setup: Install build packages." name: "Setup: Install build packages."
command: apk add git bash python2 diffutils ca-certificates curl shfmt command: apk add git bash python2 diffutils ca-certificates curl shfmt
- run: - run:
name: "Setup: Install test packages." name: "Setup: Install test packages."
command: apk add util-linux coreutils command: apk add util-linux coreutils
- run: - run:
name: "Setup: Install runtime packages." name: "Setup: Install runtime packages."
command: apk add bat ripgrep ncurses command: apk add bat ripgrep ncurses
build: build:
description: "Build the self-contained scripts." description: "Build the self-contained scripts."
@ -37,9 +37,8 @@ commands:
default: "lib" default: "lib"
steps: steps:
- run: - run:
name: "Build" name: "Build"
command: ./build.sh --minify=<<parameters.minify>> --no-verify command: ./build.sh --minify=<<parameters.minify>> --no-verify
jobs: jobs:
build: build:
@ -48,9 +47,9 @@ jobs:
- setup - setup
- checkout - checkout
- build: - build:
minify: "all" minify: "all"
- store_artifacts: - store_artifacts:
path: bin path: bin
test: test:
executor: linux_alpine executor: linux_alpine
@ -58,10 +57,10 @@ jobs:
- setup - setup
- checkout - checkout
- build: - build:
minify: "all" minify: "all"
- run: - run:
name: "Test: Unit Tests / Snapshots" name: "Test: Unit Tests / Snapshots"
command: ./test.sh --verbose --snapshot:show command: ./test.sh --verbose --snapshot:show
test-consistency: test-consistency:
executor: linux_alpine executor: linux_alpine
@ -69,10 +68,10 @@ jobs:
- setup - setup
- checkout - checkout
- build: - build:
minify: "all" minify: "all"
- run: - run:
name: "Test: Consistency" name: "Test: Consistency"
command: ./test.sh --compiled --verbose --snapshot:show command: ./test.sh --compiled --verbose --snapshot:show
test-symlink: test-symlink:
executor: linux_alpine executor: linux_alpine
@ -80,11 +79,11 @@ jobs:
- setup - setup
- checkout - checkout
- run: - run:
name: "Symlink" name: "Symlink"
command: ln -s "$PWD/src/batgrep.sh" /tmp/batgrep command: ln -s "$PWD/src/batgrep.sh" /tmp/batgrep
- run: - run:
name: "Test: Symlink" name: "Test: Symlink"
command: /tmp/batgrep 'a' >/dev/null command: /tmp/batgrep 'a' >/dev/null
workflows: workflows:
version: 2 version: 2
@ -92,9 +91,8 @@ workflows:
jobs: jobs:
- build - build
- test: - test:
requires: [build] requires: [build]
- test-consistency: - test-consistency:
requires: [build, test] requires: [build, test]
- test-symlink: - test-symlink:
requires: [build] requires: [build]