-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add initial travis-CI build config for bazel.build. #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| test --test_output=errors | ||
| test --test_size_filters=-large,-enormous |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # This is from Bazel's former travis setup, to avoid blowing up the RAM usage. | ||
| startup --host_jvm_args=-Xmx2500m | ||
| startup --host_jvm_args=-Xms2500m | ||
| startup --batch | ||
| test --ram_utilization_factor=10 | ||
|
|
||
| # This is so we understand failures better | ||
| build --verbose_failures | ||
|
|
||
| # Below this line, .travis.yml will cat the default bazelrc. | ||
| # This is needed so Bazel starts with the base workspace in its | ||
| # package path. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /bazel-* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| sudo: required | ||
| dist: xenial | ||
|
|
||
| lang: go | ||
|
|
||
| go: | ||
| - 1.7.x | ||
|
|
||
| jdk: | ||
| - oraclejdk8 | ||
|
|
||
| env: | ||
| - BAZEL_VERSION=0.4.2 | ||
|
|
||
| addons: | ||
| apt: | ||
| packages: | ||
| - wget | ||
|
|
||
| cache: | ||
| directories: | ||
| - $HOME/bazel/install | ||
| - $HOME/bazel/outbase | ||
|
|
||
| before_install: | ||
| - mkdir -p ${HOME}/bazel/install | ||
| - cd ${HOME}/bazel/install | ||
| - wget --no-clobber "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel_${BAZEL_VERSION}-linux-x86_64.deb" | ||
| - chmod +x bazel_${BAZEL_VERSION}-linux-x86_64.deb | ||
| - sudo dpkg -i bazel_${BAZEL_VERSION}-linux-x86_64.deb | ||
| - sudo apt-get -f install -qqy uuid-dev | ||
| - cd ${TRAVIS_BUILD_DIR} | ||
| - mv .bazelrc .bazelrc.orig | ||
| - cat .bazelrc.travis .bazelrc.orig > .bazelrc | ||
|
|
||
| script: | ||
| - bazel --output_base=${HOME}/bazel/outbase test //... | ||
|
|
||
| notifications: | ||
| slack: istio-dev:wEEEbaabdP5ieCgDOFetA9nX | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I usually run //contrib/endpoints/src/...
I am not sure if //... works.
It did not work in my local workspace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried it on my workstation, it worked. I think it should work, but since it is using a cache, it does not rebuild. I ll try removing the cache