Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit

Permalink
Improve Travis build time
Browse files Browse the repository at this point in the history
  • Loading branch information
kazk committed May 7, 2017
1 parent 05b3112 commit b4159f2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ language: node_js
node_js:
- "6"

before_install:
- sudo apt-get update && sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-engine
- docker --version
install:
- npm install -g eslint

Expand Down Expand Up @@ -36,4 +39,9 @@ env:

script:
- eslint '**/*.js'
- make $TEST_IMG
- cp docker/${TEST_IMG}.docker ./Dockerfile
- if docker pull codewars/${TEST_IMG}-runner; then
docker build --cache-from codewars/${TEST_IMG}-runner -t codewars/${TEST_IMG}-runner .;
else
docker build -t codewars/${TEST_IMG}-runner .;
fi

0 comments on commit b4159f2

Please sign in to comment.