Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.09 KB

02-3-P-Travis.adoc

File metadata and controls

33 lines (26 loc) · 1.09 KB

Travis CI

  1. Go to https://travis-ci.com/, click on Sign up with GitHub.

  2. Click on the green authorize button at the bottom of the page.

  3. Activate Travis-CI on your GitHub account
    Activate Travis-CI

  4. Select the repositories you want to build with Travis (make sure to include your repository that you created for this tutorial). You can modify this setting anytime later as well.

  5. [Optional step: skip if you have a gradle project already] In your working copy of your repository, create a default Gradle java project.

    • Make sure you have Gradle installed (gradle --version).

    • Issue gradle init --type java-library

    • Add a .gitignore to ignore generated resources by Git:

      .gradle/
      build/
    • Make sure your application is compiling by running gradle build

  6. Create a file called .travis.yml:

    language: java
    script:
    - gradle build
  7. Commit and push your work. If everything is set up correctly, the build should trigger and Travis should run your build using Gradle.