Skip to content

Commit

Permalink
remove cache ...
Browse files Browse the repository at this point in the history
  • Loading branch information
Chyroc Chen authored and Chyroc Chen committed Jan 11, 2017
1 parent edf8234 commit 4bda01e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ node_js:
- "5"
- "4"

env:
global:
- CACHE_DIR=$HOME/.cache/docker
- CACHE_FILE_SQOOP=$CACHE_DIR/sqoop.tar.gz
#env:
# global:
# - CACHE_DIR=$HOME/.cache/docker
# - CACHE_FILE_SQOOP=$CACHE_DIR/sqoop.tar.gz

services:
- docker

cache:
directories:
- $CACHE_DIR
#cache:
# directories:
# - $CACHE_DIR

before_install:
- mkdir -p $CACHE_DIR
- if [ -f ${CACHE_FILE_SQOOP} ]; then gunzip -c ${CACHE_FILE_SQOOP} | docker load; fi
#before_install:
# - mkdir -p $CACHE_DIR
# - if [ -f ${CACHE_FILE_SQOOP} ]; then gunzip -c ${CACHE_FILE_SQOOP} | docker load; fi

install:
- docker run -d -p 12000:12000 jimexist/sqoop
- if [ ! -f ${CACHE_FILE_SQOOP} ]; then docker save jimexist/sqoop | gzip > ${CACHE_FILE_SQOOP}; fi
# - if [ ! -f ${CACHE_FILE_SQOOP} ]; then docker save jimexist/sqoop | gzip > ${CACHE_FILE_SQOOP}; fi


script:
Expand Down

0 comments on commit 4bda01e

Please sign in to comment.