diff options
author | Zoltan Tombol <zoltan.tombol@gmail.com> | 2016-02-27 01:41:12 +0300 |
---|---|---|
committer | Zoltan Tombol <zoltan.tombol@gmail.com> | 2016-02-27 01:41:12 +0300 |
commit | 850bd646aa186057fca93cccf6e34f68d8b1b93d (patch) | |
tree | 91f3cb1c9d4e6b6a8f4b243636b354f1c53cb701 | |
parent | 56127edd0d254a92ee1367b6ed04ad429a283e92 (diff) |
Add Travis CI testing
-rw-r--r-- | .travis.yml | 7 | ||||
-rwxr-xr-x | script/install-bats.sh | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..75721f2 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: bash +before_install: + - ./script/install-bats.sh +before_script: + - export PATH="${HOME}/.local/bin:${PATH}" +script: + - bats test diff --git a/script/install-bats.sh b/script/install-bats.sh new file mode 100755 index 0000000..4c3161a --- /dev/null +++ b/script/install-bats.sh @@ -0,0 +1,6 @@ +#!/bin/sh +set -o errexit +set -o xtrace + +git clone --depth 1 https://github.com/sstephenson/bats +cd bats && ./install.sh "${HOME}/.local" && cd .. && rm -rf bats |