diff options
-rw-r--r-- | .travis.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 41d3943a16d3..980227f10ce5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,6 +50,8 @@ archlinux: # Normalize TRAVIS variable - | [ "$TRAVIS" == "true" ] && TRAVIS=1 || TRAVIS=0 +# Install optix + - 'sudo pacman -U --noconfirm /var/cache/pacman/pkg/optix*.pkg.tar.xz' # Build - 'echo "Travis initialization time: $travis_uptime seconds"' - "arch_uptime=$(cut -d' ' -f1 /proc/uptime|cut -d'.' -f1)" @@ -57,7 +59,7 @@ archlinux: - 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 DISABLE_OPTIX=1 > >(ts -s '%.T'); _makepkg_return=$? + - timeout $((50*60-arch_uptime-travis_uptime-60)) makepkg -s --noconfirm > >(ts -s '%.T'); _makepkg_return=$? - sudo pacman -Sc --noconfirm - ccache -s - ccache -z @@ -65,6 +67,9 @@ archlinux: script: - "export travis_uptime=$(cut -d' ' -f1 /proc/uptime|cut -d'.' -f1)" - 'echo "Travis initialization time: $travis_uptime seconds"' +# copy optix.pkg from private github repo +- 'git clone https://$GITHUB_ACCESS_TOKEN@github.com/bartoszek/optix-pkg' +- 'cp optix-pkg/optix*.pkg.tar.xz ~/.pkg-cache/' # assume caching out will take the same amount of time as caching in those making build time equal to 50 minutes minus two time current uptime. # detect no cache in and assume 5min cache out time. - "[ $travis_uptime -le 60 ] && cache_out_time=300 || cache_out_time=$travis_uptime" |