diff options
author | bartus | 2019-10-19 17:09:14 +0200 |
---|---|---|
committer | bartus | 2019-10-19 23:19:22 +0200 |
commit | b4ecedb49a6f7b2e2fc784b1deb33a566235c269 (patch) | |
tree | 0aef02dcf2c8f4e7c23a2b9eb054ad4f1a9f7fd0 | |
parent | d5e5cb8d772a1c3c3ba39ca7af83589f95419fa5 (diff) | |
download | aur-b4ecedb49a6f7b2e2fc784b1deb33a566235c269.tar.gz |
Travis: Insert private repo holding optix pkg.
-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" |