Skip to content

Introduce Travis CI build: enables builds against branches/releases/PRs#121

Open
HeartSaVioR wants to merge 2 commits intojanino-compiler:masterfrom
HeartSaVioR:introduce-travis-ci
Open

Introduce Travis CI build: enables builds against branches/releases/PRs#121
HeartSaVioR wants to merge 2 commits intojanino-compiler:masterfrom
HeartSaVioR:introduce-travis-ci

Conversation

@HeartSaVioR
Copy link
Contributor

@HeartSaVioR HeartSaVioR commented Mar 14, 2020

As I proposed in earlier PR (#120 (comment)), it would be nice to have a way to run tests for both assertion enabled and disabled.

Hopefully there're a couple of CI services for public repository (Open Source Project), and Travis CI is widely used one and easy to use. (As well as I adopted Travis CI into a couple of projects like Jedis, Apache Storm.)

Steps to enable would be simple: open https://travis-ci.org -> Log-in via Github account -> settings (top-right icon) -> Legacy Services Integration -> find this repo and enable the build.

For now, I've only enabled Oracle JDK 8, as OpenJDK 11 seemed to fail. We could try fixing the version matrix (OpenJDK 8 to 11) after integrating with Travis CI.

https://travis-ci.org/github/HeartSaVioR/janino/builds/662364451

Above build is against my fork - it clearly represents the issue of #119. Build 23.1 enabled assertion and passed, while build 23.2 disabled assertion and failed. Existing tests even fail due to #119 but normally we don't run test with explicitly disabling assertion, so the area has been missed.

https://travis-ci.org/github/HeartSaVioR/janino/builds/662364536

Above build is #120 + travis CI support against my fork - all builds in build matrix were passed, which clearly represents #120 fixes #119, and even existing tests.

@HeartSaVioR HeartSaVioR force-pushed the introduce-travis-ci branch from 28f8667 to 2044b42 Compare March 16, 2020 20:39
@HeartSaVioR
Copy link
Contributor Author

Updated to add JDKs - now it triggers the builds for the matrix - (Oracle JDK 8, OpenJDK 8, OpenJDK 9, OpenJDK 10, OpenJDK 11) x (assertion=true, assertion=false).

https://travis-ci.org/github/HeartSaVioR/janino/builds/663233350

@HeartSaVioR
Copy link
Contributor Author

@aunkrig Kindly ping. It would be nice if we can track the master status via Travis CI, by merging this, and simply adding a badge.

@HeartSaVioR
Copy link
Contributor Author

@oontvoo Kindly ping. More and more I feel CI would be useful on checking regression. Downstream would like to have belief on the project, which I understand is not easy to do due to small group of maintainers, but at least the project could say "we have CI and our all changes won't break tests so no regression."

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.

1 participant