aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbartus2019-09-30 22:20:34 +0200
committerbartus2019-10-01 13:35:34 +0200
commit10ee1d09f2b8782655ccf6bb463fcfa3c5a0231a (patch)
tree0fbb9bd5e1d6bc81f38105ab5486e1e2fedd1993
parent2d5dab8e3677dc1945921fc4fa3bfc2075238f99 (diff)
downloadaur-10ee1d09f2b8782655ccf6bb463fcfa3c5a0231a.tar.gz
Travis: add optix
Download link works temporary - till link expires
-rw-r--r--.travis.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index dbb2e2df8ad0..4c6d6af59d5e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -30,11 +30,13 @@ arch:
- cuda
- moreutils
- oidn
+ - optix
before_install:
# 1.Override `package-cleanup.hook` to preserve cache for travis.
# 2.Enable ccache
# 3.Multithreaded build and compress
# 4.Suppress all gcc warnings
+# 5.Put optix in yay cache
- |
sudo mkdir /etc/pacman.d/hooks/
sudo ln -s /dev/null /etc/pacman.d/hooks/package-cleanup.hook
@@ -43,6 +45,8 @@ arch:
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
+ mkdir -p ~/.cache/yay/optix
+ cp /var/cache/pacman/pkg/NVIDIA-OptiX-SDK-7.0.0-linux64.sh ~/.cache/yay/optix
script:
# Normalize TRAVIS variable
- |
@@ -62,6 +66,7 @@ arch:
script:
- "export travis_uptime=$(cut -d' ' -f1 /proc/uptime|cut -d'.' -f1)"
- 'echo "Travis initialization time: $travis_uptime seconds"'
+- '[ ! -f ~/.pkg-cache/NVIDIA-OptiX-SDK-7.0.0-linux64.sh ] && curl "https://developer.download.nvidia.com/designworks/optix/secure/7.0.0/ga/NVIDIA-OptiX-SDK-7.0.0-linux64.sh?A6U4SqtA1SUcdIQfJy-aPSwpaze2wwZkszN9pjQtd0jJmyTXqTOcL6dL4_iFYK-PYjDMeyeTjDTuCAeqEs52DyKXfZkl1pDWFtClMExc7RVzuyHfj7EiSACDo78jtZrnpGe3ZIpfGLXGDHqtcGAEHegyxkb0yPDwXuUytHjtYhuY_g" > ~/.pkg-cache/NVIDIA-OptiX-SDK-7.0.0-linux64.sh || true'
# 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.
- "curl -s https://raw.githubusercontent.com/bartoszek/arch-travis/base64-encode/arch-travis.sh| timeout $((50*60-2*travis_uptime)) bash"
- "echo pacman pkg cache size: $(du -h ~/.pkg-cache|cut -f1) in $(ls ~/.pkg-cache|wc -l) files"