stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b31fa6493ff667b5e4e06eda88f6e4dcf992f216

commit b31fa6493ff667b5e4e06eda88f6e4dcf992f216
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Tue Jan 2 16:47:12 2018 +0100

    travis: test docker build with prebuild image for speedup
---
 .travis.yml | 26 ++++++++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 98f937f4cc..3cd3c7826a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,9 +8,6 @@ os: linux
 services:
   - docker
 
-before_install:
-  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then .ci/ci-osx-deps.sh ; fi
-
 matrix:
   include:
     - env: DISTRO=Ubuntu1710
@@ -25,6 +22,27 @@ matrix:
 # Xcode 7.3.1, OS X 10.11
 # Xcode 8.3.3, OS X 10.12
 
+before_install:
+  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then .ci/ci-osx-deps.sh ; fi
+
+before_script:
+  - |
+      if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
+        docker pull stefanschmidt1/ci-support-files:$DISTRO
+      fi
+
 script:
-  - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then 
docker build -f  .ci/Dockerfile-$DISTRO . ; fi
+  - |
+      if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
+        docker run -v `pwd`:/src -w /src 
stefanschmidt1/ci-support-files:$DISTRO /src/.ci/ci-linux-build.sh
+      fi
   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then .ci/ci-osx-build.sh ; fi
+
+after_success:
+  - |
+      if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$DISTRO" != "" ]]; then
+        docker login -u stefanschmidt1 -p "$DOCKER_PASSWORD"
+        docker tag stefanschmidt1/ci-support-files:$DISTRO 
stefanschmidt1/ci-support-files:$DISTRO-$TRAVIS_BUILD_NUMBER
+        docker push stefanschmidt1/ci-support-files:$DISTRO
+        docker push 
stefanschmidt1/ci-support-files:$DISTRO-$TRAVIS_BUILD_NUMBER
+      fi

-- 


Reply via email to