diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..16d8d02 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +--- +language: c +script: + - gem install ronn + - ./script/bootstrap + - ./script/test diff --git a/script/bootstrap b/script/bootstrap new file mode 100755 index 0000000..29e3560 --- /dev/null +++ b/script/bootstrap @@ -0,0 +1,16 @@ +#!/bin/sh + + +if ! command -v ronn > /dev/null; then + echo "ronn(1) not found, install with \`gem install ronn\`" + exit 1 +fi + +if ! command -v autoreconf > /dev/null; then + echo "autoreconf(1) not found, install with your system's \`autoconf\` package" + exit 1 +fi + +autoreconf --install --warnings=all + +./configure diff --git a/script/test b/script/test new file mode 100755 index 0000000..c53d4af --- /dev/null +++ b/script/test @@ -0,0 +1,8 @@ +#!/bin/sh + +if ! [ -e Makefile ]; then + echo "Makefile not found, have you run \`script/bootstrap\`?" + exit 1 +fi + +make check