aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorMoritz Meißelbach <arbelzapf@gmail.com>2019-10-23 22:43:46 +0200
committerMoritz Meißelbach <arbelzapf@gmail.com>2019-10-23 22:43:46 +0200
commit49c1a64d1cc00f3d160e74ea49898e9107eb6486 (patch)
tree840afbddb7182009ab9e9a77b9ad8cbf2e1e1427 /.travis.yml
parent18ff43af5474e60dd58205fe614c0253727011e4 (diff)
downloadsway-launcher-desktop-49c1a64d1cc00f3d160e74ea49898e9107eb6486.tar.gz
sway-launcher-desktop-49c1a64d1cc00f3d160e74ea49898e9107eb6486.zip
Introduce Travis CI with shellcheck and BATS
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml20
1 files changed, 20 insertions, 0 deletions
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