Getting Travis CI Setup

Our team is new to Java programming as of the 2017-2018 season. With the 2018-2019 season we want to extend our use of software best practices.
It seems some teams have been able to get Travis-CI integration. If anyone has some examples of how they setup their .travis.yml file that would help get us moving. So far I’ve only been able to find one where is looks like it tells travis to use a linux base and do some installs of wpilib every time it runs, but not fully understanding the travis syntax yet leads me to make a LOT of assumptions.
Also, it looks like if we wanted to keep our current season code private we would have to pay to use Travis, has anyone seen otherwise?

1 Like

With the GitHub student pack, you can get Travis CI for free.

2 things are needed:

  1. a .travis.yaml in the robot top level folder. I’m still working out the most simple version but basically just make sure that gradlew is executable and just run gradlew
  2. Our Organization was setup by a student last year, we had to reapply to get Github Education, but my exact userid was NOT enabled as education. Travis-ci can’t auto-recognize this scenario, but a quick email off to their helpdesk quickly fixed that once I provided some additional information.

Now to understand how to enable the unit tests

2 Likes

What you said worked, just run gradlew build. I am not super familiar with travis so I didn’t realize it was that easy. Thanks!

I sent them an email, and they gave it free

Gradle is fantastic for managing java builds. If you use an IDE like Intellij, it has build management features as part of the IDE.

1 Like