diff mbox series

[v2,3/3] travis: cache doxygen

Message ID 1505923209-23879-4-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v2,1/3] travis: doxygen 1.8.13 | expand

Commit Message

Github ODP bot Sept. 20, 2017, 4 p.m. UTC
From: Maxim Uvarov <maxim.uvarov@linaro.org>


Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
/** Email created from pull request 181 (muvarov:master2)
 ** https://github.com/Linaro/odp/pull/181
 ** Patch: https://github.com/Linaro/odp/pull/181.patch
 ** Base sha: e1c46f8e296a730ed27141a33189185bb7dfd1b1
 ** Merge commit sha: 16b43e6c6d22c5893c1765750163a3d5b7467249
 **/
 .travis.yml | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index 21fa9e3ba..a9ae219dc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -60,6 +60,7 @@  cache:
                 - dpdk
                 - netmap
                 - $HOME/cunit-install
+                - $HOME/doxygen-install
 
 env:
         - CONF=""
@@ -237,13 +238,17 @@  jobs:
                   install:
                           - true
                   script:
-                          - wget https://github.com/doxygen/doxygen/archive/Release_1_8_13.tar.gz
-                          - tar xpvf Release_1_8_13.tar.gz
-                          - pushd doxygen-Release_1_8_13
-                          - cmake -DCMAKE_INSTALL_PREFIX=/usr .
-                          - sudo make install
-                          - popd
+                          - |
+                            if [ ! -f "$HOME/doxygen-install/bin/doxygen" ]; then
+                              wget https://github.com/doxygen/doxygen/archive/Release_1_8_13.tar.gz
+                              tar xpvf Release_1_8_13.tar.gz
+                              pushd doxygen-Release_1_8_13
+                              cmake -DCMAKE_INSTALL_PREFIX=$HOME/doxygen-install .
+                              make install
+                              popd
+                            fi
 
+                          - export PATH=$HOME/doxygen-install/bin:$PATH
                           # doxygen does not trap on warnings, check for them here.
                           - ./bootstrap
                           - ./configure