ci: test build outputs

This modifies CI to check that we generate completion files and a man
page.

We also enable tests on arm.
This commit is contained in:
Andrew Gallant
2018-02-06 15:53:17 -05:00
parent 6553940328
commit e1f1ede17d
3 changed files with 83 additions and 24 deletions

View File

@@ -13,17 +13,6 @@ host() {
esac
}
gcc_prefix() {
case "$TARGET" in
arm*-gnueabihf)
echo arm-linux-gnueabihf-
;;
*)
return
;;
esac
}
architecture() {
case "$TARGET" in
x86_64-*)
@@ -41,9 +30,41 @@ architecture() {
esac
}
is_ssse3_target() {
case "$TARGET" in
x86_64*) return 0 ;;
*) return 1 ;;
gcc_prefix() {
case "$(architecture)" in
armhf)
echo arm-linux-gnueabihf-
;;
*)
return
;;
esac
}
is_ssse3_target() {
case "$(architecture)" in
amd64) return 0 ;;
*) return 1 ;;
esac
}
is_x86() {
case "$(architecture)" in
amd64|i386) return 0 ;;
*) return 1 ;;
esac
}
is_arm() {
case "$(architecture)" in
armhf) return 0 ;;
*) return 1 ;;
esac
}
is_linux() {
case "$TRAVIS_OS_NAME" in
linux) return 0 ;;
*) return 1 ;;
esac
}