Hello,
I am currently conducting tests to study the DevOps environment of GitHub and Travis-CI. My GitHub repository is a public repository, and I have written the .travis.yml file as shown below and committed and pushed it. However, when I access Travis-CI, it displays the message “No builds for this repository.” I am curious why this is happening.
<!-- .travis.yml --!>
language: java
jdk:
- openjdk17
branches:
only:
- master
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.gradle'
script:
- "hostname"
- "ip address show eth0 | grep ether"
- "./gradlew clean"
notifications:
email:
recipients:
- myemail@gmail.com
This sample repository is a Java source project, using Gradle as the build tool, and it utilizes OpenJDK 17.