Skip to content

Commit 69d1687

Browse files
authored
Merge pull request #35 from OpenSimulationInterface/feature/quicker-ci-builds
Speed up CI builds through better usage of caching
2 parents d4c3334 + 5714048 commit 69d1687

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.travis.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,13 @@ install:
2626
# Install a recent version of CMake
2727
- |
2828
CMAKE_URL="https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz"
29-
mkdir -p cmake
30-
travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
29+
if [ ! -f ${DEPS_DIR}/cmake/bin/cmake ] ; then mkdir -p cmake ; travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake ; fi
3130
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
3231
3332
# Install a recent version of the Protobuf
3433
- |
3534
PROTOBUF_URL="https://github.com/google/protobuf/releases/download/v3.2.0/protobuf-cpp-3.2.0.tar.gz"
36-
mkdir -p protobuf
37-
travis_retry wget --no-check-certificate --quiet -O - ${PROTOBUF_URL} | tar --strip-components=1 -xz -C protobuf
38-
cd protobuf
39-
./configure --prefix=/usr
40-
make
35+
if [ ! -f ${DEPS_DIR}/protobuf/src/.libs/protoc ] ; then mkdir -p protobuf ; travis_retry wget --no-check-certificate --quiet -O - ${PROTOBUF_URL} | tar --strip-components=1 -xz -C protobuf ; cd protobuf ; ./configure --prefix=/usr ; make ; else cd protobuf ; fi
4136
sudo make install
4237
4338
# Change directory back to default build directory.

0 commit comments

Comments
 (0)