diff options
author | bartus | 2019-10-14 15:10:37 +0200 |
---|---|---|
committer | bartus | 2020-07-04 15:16:24 +0200 |
commit | 9504c99df585c0974489fb05cea45af05f9b5263 (patch) | |
tree | 0b35c18616e1590f840d6782a699ac575db0ea18 | |
parent | fa3c725372f45328429538018ae078ff78cc80ae (diff) | |
download | aur-9504c99df585c0974489fb05cea45af05f9b5263.tar.gz |
Travis: drop ccache
-rw-r--r-- | .travis.yml | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml index ed6616abcbe1..57bc36d2f1d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,6 @@ branches: cache: directories: - - ~/.ccache - ~/.pkg-cache - scons*.tar.gz @@ -16,12 +15,10 @@ services: archlinux: mount: - - ~/.ccache:~/.ccache - ~/.pkg-cache:/var/cache/pacman/pkg repos: - bartus=https://github.com/bartoszek/AUR-repo/raw/master packages: - - ccache - moreutils before_install: # 1.Override `package-cleanup.hook` to preserve cache for travis. @@ -31,26 +28,18 @@ archlinux: - | sudo mkdir /etc/pacman.d/hooks/ sudo ln -s /dev/null /etc/pacman.d/hooks/package-cleanup.hook - sudo sed -i '/^BUILDENV/s/\!ccache/ccache/' /etc/makepkg.conf sudo sed -i '/#MAKEFLAGS=/c MAKEFLAGS="-j2"' /etc/makepkg.conf sudo sed -i '/^COMPRESSXZ/s/\xz/xz -T 2/' /etc/makepkg.conf - sudo sed -i '$a CFLAGS="$CFLAGS -w"' /etc/makepkg.conf - sudo sed -i '$a CXXFLAGS="$CXXFLAGS -w"' /etc/makepkg.conf script: # Normalize TRAVIS variable - - | - [ "$TRAVIS" == "true" ] && TRAVIS=1 || TRAVIS=0 + - '[ "$TRAVIS" == "true" ] && TRAVIS=1 || TRAVIS=0' # Build - 'echo "Travis initialization time: $travis_uptime seconds"' - "arch_uptime=$(cut -d' ' -f1 /proc/uptime|cut -d'.' -f1)" - 'echo "Arch-Travis initialization time: $((arch_uptime-travis_uptime)) seconds"' - - ccache -s - - ccache -z # set timeout to 50m minus current uptime, minus travis cache in time, minus 60 second buffer for arch-travis cleanup. - timeout $((50*60-arch_uptime-travis_uptime-60)) makepkg -s --noconfirm --nocheck > >(ts -s '%.T'); _makepkg_return=$? - sudo pacman -Sc --noconfirm - - ccache -s - - ccache -z - exit $_makepkg_return script: - "export travis_uptime=$(cut -d' ' -f1 /proc/uptime|cut -d'.' -f1)" |