Skip to content

Conversation

@pmai
Copy link
Contributor

@pmai pmai commented Feb 13, 2017

Improves CI Cache usage by not redownloading/rebuilding dependencies when they are already in the cache. Also removes need for cache updates after build.

@pmai pmai added this to the Open Simulation Interface, preliminary freeze milestone Feb 13, 2017
@pmai pmai self-assigned this Feb 13, 2017
@pmai pmai requested review from a user and mbinna February 13, 2017 16:35
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

@ghost ghost merged commit 69d1687 into master Feb 13, 2017
@mbinna mbinna deleted the feature/quicker-ci-builds branch February 13, 2017 18:45
CMAKE_URL="https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz"
mkdir -p cmake
travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
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
Copy link
Contributor

@mbinna mbinna Feb 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pmai Is there a reason you did not introduce newline characters after 120 characters? At the moment, users have to horizontally scroll. Same in line 35.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly just to keep the build log files less verbose.

cd protobuf
./configure --prefix=/usr
make
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dot in ${DEPS_DIR}/protobuf/src/.libs/protoc looks strange. Did you intentionally add it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the actual binary is built in the .libs directory, the other protoc is just a wrapper script and therefore not really indicative of a completed build.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants