Add CI test to see if symlinks work

This commit is contained in:
Ethan P 2019-10-22 15:00:35 -07:00
parent 0aeabe9bdf
commit c2b4d2fe9a
No known key found for this signature in database
GPG Key ID: 6963FD04F6CF35EA

View File

@ -19,7 +19,7 @@ commands:
command: apk update command: apk update
- run: - run:
name: "Setup: Install build packages." name: "Setup: Install build packages."
command: apk add bash python2 diffutils ca-certificates curl command: apk add git bash python2 diffutils ca-certificates curl
- run: - run:
name: "Setup: Install runtime packages." name: "Setup: Install runtime packages."
command: apk add bat ripgrep ncurses command: apk add bat ripgrep ncurses
@ -69,6 +69,17 @@ jobs:
name: "Test: Consistency" name: "Test: Consistency"
command: test/run.sh consistency-test command: test/run.sh consistency-test
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: workflows:
version: 2 version: 2
@ -79,4 +90,6 @@ workflows:
requires: [build] requires: [build]
- test-consistency: - test-consistency:
requires: [build] requires: [build]
- test-symlink:
requires: [build]