diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..a1255f30 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +sudo: required +notifications: + email: false +language: generic +services: + - docker + +arch: + packages: + - git + - go + script: + - go tool vet . + - diff -u <(echo -n) <(gofmt -d ./) + - make + - make test + - ./testdata/install_test.sh + +script: + - "curl -s https://raw.githubusercontent.com/mikkeloscar/arch-travis/master/arch-travis.sh | bash" diff --git a/testdata/install_test.sh b/testdata/install_test.sh new file mode 100755 index 00000000..35a6309d --- /dev/null +++ b/testdata/install_test.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +function error() { + echo "ERROR: $1" + exit 1 +} + +echo "Start simple" +./yay -S shfmt --noconfirm || error "unable to make shfmt" + +./yay -Qsq shfmt || error "unable to install shfmt" + +exit 0