github.com/rkt/rkt@v1.30.1-0.20200224141603-171c416fac02/tests/install-deps.sh (about) 1 #!/bin/bash -eu 2 3 # Helper script for Continuous Integration Services 4 5 # Check if the last commit message requests the CI to skip the build. 6 git log HEAD~..HEAD > last-commit 7 if grep -qE '\[ci skip\]|\[skip ci\]' last-commit ; then 8 cat last-commit 9 echo 10 echo "Build skipped as requested in the last commit." 11 touch ci-skip 12 exit 0 13 fi 14 15 if [ "${CI-}" == true ] ; then 16 # https://semaphoreci.com/ 17 if [ "${SEMAPHORE-}" == true ] ; then 18 # Most dependencies are already installed on Semaphore. 19 # Here we can install any missing dependencies. Whenever 20 # Semaphore installs more dependencies on their 21 # platform, they should be removed from here to save time. 22 23 install-package libacl1-dev bc libsystemd-journal-dev 24 25 # libmount: https://github.com/systemd/systemd/pull/986#issuecomment-138451264 26 sudo add-apt-repository --yes ppa:pitti/systemd-semaphore 27 sudo apt-get update -qq || true 28 install-package libmount-dev libmount1 29 30 # building systemd v229 crashes with the gcc 4.8, update to gcc 5 31 sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y 32 sudo apt-get update -qq || true 33 install-package gcc-5 gcc-5-base libgcc-5-dev g++-5 libstdc++-5-dev libseccomp-dev 34 sudo update-alternatives --remove-all gcc 35 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 20 36 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 20 37 fi 38 fi