From 54c4368db083078b2bb7284c0ae305f18662bb6b Mon Sep 17 00:00:00 2001
From: redsky17 <joedonofry@gmail.com>
Date: Thu, 14 Feb 2019 03:46:46 +0000
Subject: [PATCH] Move docker build to before synapse make

This hopefully fixes the issue related to reading a file that travis
doesn't have read access to causing docker build to fail
---
 .travis.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 8a304bd06..1526e6e4b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -28,6 +28,8 @@ matrix:
         - COVERAGE=ON
 
 install:
+  if [ "$TRAVIS_OS_NAME" = "linux" ]; then docker build -t nheko-reborn/mtxclient -f Dockerfile . ; fi
+
   - ./.ci/install.sh
 
 script:
@@ -40,8 +42,6 @@ script:
   # Build the lib and run the test suite against synapse.
   - |
     if [ $TRAVIS_OS_NAME == linux ]; then
-      ls `pwd`
-      docker build -t nheko-reborn/mtxclient `pwd`/Dockerfile
       docker run -v `pwd`:/build --net=host \
         -e CXX_VERSION=${CXX_VERSION} \
         -e CC_VERSION=${CC_VERSION} \
-- 
GitLab