From e51f837360ac6d48475596b58228ade6128abfa6 Mon Sep 17 00:00:00 2001
From: Jonathan Challinger <mr.challinger@gmail.com>
Date: Wed, 7 Jan 2015 14:09:05 -0800
Subject: [PATCH] Travis: don't depend on directory name being "ardupilot"

---
 .travis.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 33b8576a7..88ad5d63c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,10 +1,10 @@
 language: cpp
 
 before_install:
-  - cd .. && ./ardupilot/Tools/scripts/install-prereqs-ubuntu.sh -y && . ~/.profile
+  -  APMDIR=$(pwd) && pushd .. && $APMDIR/Tools/scripts/install-prereqs-ubuntu.sh -y && . ~/.profile && popd
 
 script: 
-  - cd ./ardupilot && Tools/scripts/build_all_travis.sh
+  - Tools/scripts/build_all_travis.sh
 
 notifications:
   webhooks:
-- 
GitLab