Skip to content

Commit 85e8cb5

Browse files
author
Bytekeeper
committed
Caching starcraft.zip
1 parent 9e6616d commit 85e8cb5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ python:
44
- "3.6"
55
services:
66
- docker
7+
cache:
8+
directories:
9+
- /tmp/sc-docker
710
before_install:
811
- jdk_switcher use oraclejdk8
912
before_script:
@@ -12,9 +15,12 @@ before_script:
1215
- pushd sc-docker
1316
- python3 setup.py bdist_wheel
1417
- pip3 install dist/scbw*.whl
18+
- mkdir -p /tmp/sc-docker
19+
- if [ -e /tmp/sc-docker/starcraft.zip ]; then cp /tmp/sc-docker/starcraft.zip scbw/local_docker; fi
1520
- cd docker
1621
- ./build_images.sh
1722
- popd
23+
- if [ ! -e /tmp/sc-docker/starcraft.zip ]; then cp scbw/local_docker/starcraft.zip /tmp/sc-docker/starcraft.zip; fi
1824
- scbw.play --install
1925
script:
2026
- sh mvnw clean install

0 commit comments

Comments
 (0)