Add SpacemanDMM binaries to Travis cache

This commit is contained in:
Tad Hardesty
2020-09-17 18:37:03 -07:00
parent 8f17ee3ae4
commit 6dd0df8dd1
2 changed files with 16 additions and 2 deletions
+3
View File
@@ -83,6 +83,9 @@ jobs:
- name: "Generate Documentation"
# Only run for non-PR commits to the real master branch.
if: branch = master AND head_branch IS blank
cache:
directories:
- $HOME/SpacemanDMM
install:
- tools/travis/install_spaceman_dmm.sh dmdoc
before_script:
+13 -2
View File
@@ -3,6 +3,17 @@ set -euo pipefail
source dependencies.sh
wget -O ~/$1 "https://github.com/SpaceManiac/SpacemanDMM/releases/download/$SPACEMAN_DMM_VERSION/$1"
chmod +x ~/$1
if [ ! -f ~/$1 ]; then
mkdir -p "$HOME/SpacemanDMM"
CACHEFILE="$HOME/SpacemanDMM/$1"
if ! [ -f "$CACHEFILE.version" ] || ! grep -Fxq "$SPACEMAN_DMM_VERSION" "$CACHEFILE.version"; then
wget -O "$CACHEFILE" "https://github.com/SpaceManiac/SpacemanDMM/releases/download/$SPACEMAN_DMM_VERSION/$1"
chmod +x "$CACHEFILE"
echo "$SPACEMAN_DMM_VERSION" >"$CACHEFILE.version"
fi
ln -s "$CACHEFILE" ~/$1
fi
~/$1 --version