Merge pull request #370 from Jguer/travis-exp

Test arch-travis on yay. Just test if it's building right now and then we can get serious
This commit is contained in:
J Guerreiro 2019-03-29 22:30:50 +00:00 committed by GitHub
commit 6809d7c6d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

20
.travis.yml Normal file
View File

@ -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"

13
testdata/install_test.sh vendored Executable file
View File

@ -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