Skip to content

Commit

Permalink
Attempt to cache the m2 directory
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore authored and dominikl committed Nov 21, 2017
1 parent a528490 commit ef49beb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@ python:
services:
- docker

cache:
directories:
- $HOME/.m2

before_install:
- docker --version
- pip install docker-compose
- docker-compose -v

script:
- mkdir -f ~/.m2 && chmod 777 ~/.m2
- docker-compose -f docker/docker-compose.yml up --build --abort-on-container-exit
- exitcode=$(docker inspect -f '{{.State.ExitCode}}' docker_test_1)
- docker-compose -f docker/docker-compose.yml rm -fv
Expand Down
5 changes: 3 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ services:
links:
- omeroserver
volumes:
- ../.:/home/omero/test
command: /home/omero/test/docker/runtest
- $HOME/.m2:/home/t/.m2
- ../.:/home/t/test
command: /home/t/test/docker/runtest

0 comments on commit ef49beb

Please sign in to comment.