From 58745060cf8f6d732a9dfa75078f9b7926da7a9d Mon Sep 17 00:00:00 2001 From: Jguer Date: Fri, 27 Apr 2018 01:01:18 +0100 Subject: [PATCH 1/3] Test arch-travis on yay Signed-off-by: Jguer --- .travis.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..fd7b51aa --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +sudo: required +notifications: + email: false +language: generic +services: +- docker + +arch: + packages: + - git + - go + script: + - make + - make test + +script: +- "curl -s https://raw.githubusercontent.com/mikkeloscar/arch-travis/master/arch-travis.sh | bash" From 4d83ffb9157b3693c29653cca5b0b1661fcee57e Mon Sep 17 00:00:00 2001 From: Jguer Date: Fri, 27 Apr 2018 02:03:58 +0100 Subject: [PATCH 2/3] Simple test install from local yay Signed-off-by: Jguer --- .travis.yml | 1 + testdata/install_test.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100755 testdata/install_test.sh diff --git a/.travis.yml b/.travis.yml index fd7b51aa..7e64c2dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ arch: script: - 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 From 4131262f364ab3a889c77f103e904f4d72b85afd Mon Sep 17 00:00:00 2001 From: Jguer Date: Sat, 15 Sep 2018 19:57:06 +0100 Subject: [PATCH 3/3] Add some vetting to travis Signed-off-by: Jguer --- .travis.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7e64c2dc..a1255f30 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,20 @@ sudo: required notifications: - email: false + email: false language: generic services: -- docker + - docker arch: packages: - - git - - go + - git + - go script: - - make - - make test - - ./testdata/install_test.sh + - 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" + - "curl -s https://raw.githubusercontent.com/mikkeloscar/arch-travis/master/arch-travis.sh | bash"