Skip to content

Use container-based Travis infra - #532

Merged
phoad merged 1 commit into
rsocket:masterfrom
vitaut:container
Jun 20, 2017
Merged

Use container-based Travis infra#532
phoad merged 1 commit into
rsocket:masterfrom
vitaut:container

Conversation

@vitaut

Copy link
Copy Markdown
Contributor

This PR migrates the Travis config from legacy to container-based infrastructure and caches built folly binaries giving almost 4x build speed up (from ~16 min to ~4 min).

Before:
screenshot 2017-06-19 18 33 19 1

After:
screenshot 2017-06-19 18 40 48

Other improvements:

  • Cleaned up and reduced duplication in .travis.yml.
  • Corrected memory requirements in Vagrantfile.
  • Replaced FOLLY_LIBRARYDIR and FOLLY_INCLUDEDIR with a single FOLLY_INSTALL_DIR CMake variable.

@alexmalyshevalexmalyshev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Well that makes things easier.

@phoadphoad left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the update.

Comment thread.travis.yml
- if [ -n "$GCC_VERSION" -a "$ASAN" == "On" ]; then CXX_FLAGS="${CXX_FLAGS} -fsanitize=address,undefined -fuse-ld=gold"; fi
- if [ -n "$GCC_VERSION" ]; then CXX_FLAGS="${CXX_FLAGS} --coverage"; fi # enable code coverage on GCC builds
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CXX_FLAGS="${CXX_FLAGS}" -DCMAKE_EXE_LINKER_FLAGS="${CXX_LINKER_FLAGS}" -DMETA_CXX_STD=$CPP_VERSION
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CXX_FLAGS="${CXX_FLAGS}" -DMETA_CXX_STD=$CPP_VERSION -DFOLLY_INSTALL_DIR=$HOME/folly

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don't we need the Linker_Flags anymore?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

They are not set anywhere (looks like copypasta).

@phoad

Copy link
Copy Markdown
Member

I will do Close/Open to rerun the build.

@phoadphoad closed this Jun 20, 2017
@phoadphoad reopened this Jun 20, 2017
@phoadphoad closed this Jun 20, 2017
@phoadphoad reopened this Jun 20, 2017
@vitaut

Copy link
Copy Markdown
ContributorAuthor

The "Broken promise" error looks unrelated and has been there before (e.g. https://travis-ci.org/rsocket/rsocket-cpp/jobs/243859522).

@vitaut

Copy link
Copy Markdown
ContributorAuthor

BTW you can trigger the build via Travis without closing/opening PRs.

@vitautvitaut mentioned this pull request Jun 20, 2017
@phoad
phoad merged commit b6e350d into rsocket:masterJun 20, 2017
@vitaut
vitaut deleted the container branch June 22, 2017 19:21
Sign up for freeto 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

@vitaut@phoad@alexmalyshev