Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Cache file and check directory and file when unpacking

ZachTRice0d506a3145d8
diff --git a/.travis.yml b/.travis.yml
index 37aaed4ef..43f6de70c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -47,13 +47,14 @@ matrix:
- virtualenv $HOME/venv
- source $HOME/venv/Scripts/activate
- DIR="c:/GTK"
- - if [ ! -d "$(ls -A $DIR)" ]; then curl -o gtk.zip "http://ftp.gnome.org/pub/GNOME/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip" -O -J -L; fi
- - if [ ! -d "$(ls -A $DIR)" ]; then mkdir c:/GTK; fi
- - if [ ! -d "$(ls -A $DIR)" ]; then unzip gtk.zip -d "c:/GTK"; fi
- - if [ ! -d "$(ls -A $DIR)" ]; then rm -f gtk.zip; fi
+ - FILE="$HOME/gtk.zip"
+ - if [ ! -d "$FILE" ]; then curl -o $HOME/gtk.zip "http://ftp.gnome.org/pub/GNOME/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip" -O -J -L; fi
+ - if [ ! -d "$DIR" ]; then mkdir c:/GTK; fi
+ - unzip $HOME/gtk.zip -d "c:/GTK"
cache:
directories:
- c:/GTK
+ - $HOME/gtk.zip
- $HOME/venv
- os: windows
language: node_js
@@ -68,13 +69,14 @@ matrix:
- virtualenv $HOME/venv
- source $HOME/venv/Scripts/activate
- DIR="c:/GTK"
- - if [ ! -d "$(ls -A $DIR)" ]; then curl -o gtk.zip "http://ftp.gnome.org/pub/GNOME/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip" -O -J -L; fi
- - if [ ! -d "$(ls -A $DIR)" ]; then mkdir c:/GTK; fi
- - if [ ! -d "$(ls -A $DIR)" ]; then unzip gtk.zip -d "c:/GTK"; fi
- - if [ ! -d "$(ls -A $DIR)" ]; then rm -f gtk.zip; fi
+ - FILE="$HOME/gtk.zip"
+ - if [ ! -d "$FILE" ]; then curl -o $HOME/gtk.zip "http://ftp.gnome.org/pub/GNOME/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip" -O -J -L; fi
+ - if [ ! -d "$DIR" ]; then mkdir c:/GTK; fi
+ - unzip $HOME/gtk.zip -d "c:/GTK"
cache:
directories:
- c:/GTK
+ - $HOME/gtk.zip
- $HOME/venv
cache: