Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Cache python directories and conditionally install

ZachTRice3e5727921dbd
diff --git a/.travis.yml b/.travis.yml
index 012e6ed74..6c79f4bf2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -39,37 +39,43 @@ matrix:
python: '2.7.16'
node_js: '8.15.1'
before_install:
- - choco install python2
+ - GTKDIR="c:/GTK"
+ - GTKFILE="$HOME/GTK_TEMP/gtk.zip"
+ - PYDIR="c:/Python27"
+ - if [ ! -d "$PYDIR" ] || [ ! "$(ls -A $PYDIR)" ]; then choco install python2; fi
- export PATH="/c/Python27:/c/Python27/Scripts:$PATH"
- python -m ensurepip
- - DIR="c:/GTK"
- - FILE="$HOME/GTK_TEMP/gtk.zip"
- - if [ ! -f "$FILE" ]; then curl -o $FILE "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 $DIR; fi
- - if [ ! "$(ls -A $DIR)" ]; then unzip $FILE -d $DIR; fi
+ - if [ ! -f "$GTKFILE" ]; then curl -o $GTKFILE "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 "$GTKDIR" ]; then mkdir $GTKDIR; fi
+ - if [ ! "$(ls -A $GTKDIR)" ]; then unzip $GTKFILE -d $GTKDIR; fi
cache:
directories:
- c:/GTK
- $HOME/GTK_TEMP
- $HOME/.node-gyp
+ - c:/Python27
+ - c:/Python27/Scripts
- os: windows
language: node_js
python: '2.7.16'
node_js: lts/* # latest LTS Node.js release
before_install:
- - choco install python2
+ - GTKDIR="c:/GTK"
+ - GTKFILE="$HOME/GTK_TEMP/gtk.zip"
+ - PYDIR="c:/Python27"
+ - if [ ! -d "$PYDIR" ] || [ ! "$(ls -A $PYDIR)" ]; then choco install python2; fi
- export PATH="/c/Python27:/c/Python27/Scripts:$PATH"
- python -m ensurepip
- - DIR="c:/GTK"
- - FILE="$HOME/GTK_TEMP/gtk.zip"
- - if [ ! -f "$FILE" ]; then curl -o $FILE "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 $DIR; fi
- - if [ ! "$(ls -A $DIR)" ]; then unzip $FILE -d $DIR; fi
+ - if [ ! -f "$GTKFILE" ]; then curl -o $GTKFILE "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 "$GTKDIR" ]; then mkdir $GTKDIR; fi
+ - if [ ! "$(ls -A $GTKDIR)" ]; then unzip $GTKFILE -d $GTKDIR; fi
cache:
directories:
- c:/GTK
- $HOME/GTK_TEMP
- $HOME/.node-gyp
+ - c:/Python27
+ - c:/Python27/Scripts
cache:
directories: