try using /home/jsnsh variable in travis tasks for docker cache swaparoo.
@@ -24,8 +24,8 @@ services:
# Change location of docker image cache to a location that travis can use.
before_install:
- sudo service docker stop
- - if [ "$(ls -A /home/travis/docker)" ]; then echo "/home/travis/docker already set"; else sudo mv /var/lib/docker /home/travis/docker; fi
- - sudo bash -c "echo 'DOCKER_OPTS=\"-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -g /home/travis/docker\"' > /etc/default/docker"
+ - if [ "$(ls -A ${HOME}/docker)" ]; then echo "${HOME}/docker already set"; else sudo mv /var/lib/docker ${HOME}/docker; fi
+ - sudo bash -c "echo 'DOCKER_OPTS=\"-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -g ${HOME}/docker\"' > /etc/default/docker"
- sudo service docker start
install:
