From 49c1a64d1cc00f3d160e74ea49898e9107eb6486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Mei=C3=9Felbach?= Date: Wed, 23 Oct 2019 22:43:46 +0200 Subject: Introduce Travis CI with shellcheck and BATS --- .travis.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .travis.yml (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f379d37 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +language: shell +env: + global: + - export PATH="/usr/local/bin:$PATH" +before_install: + - | + if [ "$TRAVIS_OS_NAME" = "linux" ]; then + branch=master + batstmp="$(mktemp -d bats-core-"${branch}".XXXXX)" + pushd "${batstmp}" &> /dev/null || return 11 + curl -sSLO https://github.com/bats-core/bats-core/archive/"${branch}".zip + unzip -qo "${branch}".zip + sudo bash "${batstmp}"/bats-core-"${branch}"/install.sh /usr/local + popd &> /dev/null || return 12 + fi +script: + - bash -c 'shopt -s globstar nullglob; shellcheck ./sway-launcher-desktop.sh' + - cd tests && bats *.bats +notifications: + email: false \ No newline at end of file -- cgit v1.2.3