diff options
author | Zoltan Tombol <zoltan.tombol@gmail.com> | 2016-02-27 03:50:24 +0300 |
---|---|---|
committer | Zoltan Tombol <zoltan.tombol@gmail.com> | 2016-02-27 04:16:28 +0300 |
commit | 1f771f0cded6ec739dada3b69a58c8725928baa6 (patch) | |
tree | 71c5b20a234e1c0eef11d36296e8db0d5ceb0e0a | |
parent | bd7ece6cb495ba2f4cb7360226c6ba4966c1b7f6 (diff) |
Add Travis CI testing
-rw-r--r-- | .travis.yml | 8 | ||||
-rwxr-xr-x | script/install-bats.sh | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4909e30 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: bash +before_install: + - ./script/install-bats.sh + - git clone --depth 1 https://github.com/ztombol/bats-core ../bats-core +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 |