Skip to content
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

Add Bazel job in Travis #395

Merged
merged 16 commits into from
Sep 30, 2018
Merged

Add Bazel job in Travis #395

merged 16 commits into from
Sep 30, 2018

Conversation

regisd
Copy link
Member

@regisd regisd commented Sep 30, 2018

  • Add a new matrix cell for Bazel
  • In the bazel job:
    • install deps with apt
    • download bazel.deb from official repo
    • install with sudo apt-get install. N.B. This job needs sudo: true
  • Add a simple bazel.sh that only does (and it's not going to change much in the future)
    cd jflex/examples
    bazel build //...
    bazel test //...
    
  • Add an (virtually) empty root jflex/examples/BUILD
    • This root BUILD defines one sh_test, so that bazel test //... doesn't complain with

      No test targets were found, yet testing was requested

  • This is the first step for Add support for Bazel #204 (Bazel support)
  • N.B. Do not use a cache for bazel.
    • I tried caching the bazel output directory (this is in theory perfectly fine)
      by setting a non-default --output_user_root=$TRAVIS_BUILD_DIR/__bazel__
    • But the VM hangs at startup with

      creating directory /home/travis/build/jflex-de/jflex/bazel

In an attempt to support all build systems in the examples,
run bazel test on all examples.

That's also the first step towards Bazel support jflex-de#204
@regisd regisd changed the title Add TEST_SUITE=bazel to run Bazel on examples Add support for Bazel on examples Sep 30, 2018
@regisd regisd self-assigned this Sep 30, 2018
@regisd regisd added enhancement Feature requests task Process tasks labels Sep 30, 2018
@regisd regisd added this to the 1.7.1 milestone Sep 30, 2018
@regisd regisd changed the title Add support for Bazel on examples Add support Bazel job in Travis Sep 30, 2018
@regisd regisd changed the title Add support Bazel job in Travis Add Bazel job in Travis Sep 30, 2018
@regisd regisd merged commit f110aa8 into jflex-de:master Sep 30, 2018
@regisd regisd deleted the travis-bazel branch September 30, 2018 23:14
@regisd regisd removed this from the 1.7.1 milestone Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests task Process tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant