aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts/ci/setup_travis.sh
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-12-04 21:31:50 -0500
committerJack Lloyd <[email protected]>2018-12-04 21:31:50 -0500
commit9d5e0567b2b90ec237594afcc4d25843a82eda94 (patch)
tree7fdf1b0029f265bd36b853c96d4ede0384cd74e5 /src/scripts/ci/setup_travis.sh
parenteb1f48ee1d3f2fccf331e3b97bda10fb10581263 (diff)
Simplify the Travis setup script
Diffstat (limited to 'src/scripts/ci/setup_travis.sh')
-rwxr-xr-xsrc/scripts/ci/setup_travis.sh33
1 files changed, 14 insertions, 19 deletions
diff --git a/src/scripts/ci/setup_travis.sh b/src/scripts/ci/setup_travis.sh
index 95831f7fe..9f64bdc7b 100755
--- a/src/scripts/ci/setup_travis.sh
+++ b/src/scripts/ci/setup_travis.sh
@@ -12,34 +12,30 @@ set -ev
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
if [ "$BUILD_MODE" = "valgrind" ]; then
- sudo apt-get -qq update
sudo apt-get install valgrind
elif [ "$BUILD_MODE" = "cross-win64" ]; then
- sudo apt-get -qq update
sudo apt-get install wine g++-mingw-w64-x86-64
- elif [ "${BUILD_MODE:0:5}" = "cross" ]; then
- sudo apt-get -qq update
-
- if [ "$BUILD_MODE" = "cross-arm32" ]; then
- sudo apt-get install qemu-user g++-arm-linux-gnueabihf
- elif [ "$BUILD_MODE" = "cross-arm64" ]; then
- sudo apt-get install qemu-user g++-aarch64-linux-gnu
- elif [ "$BUILD_MODE" = "cross-ppc32" ]; then
- sudo apt-get install qemu-user g++-powerpc-linux-gnu
- elif [ "$BUILD_MODE" = "cross-ppc64" ]; then
- sudo apt-get install qemu-user g++-powerpc64le-linux-gnu
- elif [ "$BUILD_MODE" = "cross-mips64" ]; then
- sudo apt-get install qemu-user g++-mips64-linux-gnuabi64
- fi
+ elif [ "$BUILD_MODE" = "cross-arm32" ]; then
+ sudo apt-get install qemu-user g++-arm-linux-gnueabihf
+
+ elif [ "$BUILD_MODE" = "cross-arm64" ]; then
+ sudo apt-get install qemu-user g++-aarch64-linux-gnu
+
+ elif [ "$BUILD_MODE" = "cross-ppc32" ]; then
+ sudo apt-get install qemu-user g++-powerpc-linux-gnu
+
+ elif [ "$BUILD_MODE" = "cross-ppc64" ]; then
+ sudo apt-get install qemu-user g++-powerpc64le-linux-gnu
+
+ elif [ "$BUILD_MODE" = "cross-mips64" ]; then
+ sudo apt-get install qemu-user g++-mips64-linux-gnuabi64
elif [ "$BUILD_MODE" = "lint" ]; then
- sudo apt-get -qq update
sudo apt-get install pylint
elif [ "$BUILD_MODE" = "coverage" ]; then
- sudo apt-get -qq update
sudo apt-get install trousers libtspi-dev lcov python-coverage
git clone --depth 1 https://github.com/randombit/botan-ci-tools
@@ -53,7 +49,6 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; then
pip install --user codecov==2.0.10
elif [ "$BUILD_MODE" = "docs" ]; then
- sudo apt-get -qq update
sudo apt-get install doxygen python-docutils
# Version of Sphinx in 16.04 is too old and dies on enum definitions