src/main/java/io/cucumber/pro/environment/CIEnvironment.java
private static CIEnvironment detectTravis(Map<String, String> env) {
        String revision = env.get("TRAVIS_COMMIT");
        String branch = env.get("TRAVIS_BRANCH");
        if (revision == null || branch == null) return null;
        String tag = null;
        String repoSlug = env.get("TRAVIS_REPO_SLUG");
        String projectName = repoSlug.split("/")[1];
        return new CIEnvironment(
                "Travis CI",
                revision,
                branch,
                tag,
                projectName
        );
    }
private static CIEnvironment detectTravis(Map<String, String> env) {
        String revision = env.get("TRAVIS_COMMIT");
        String branch = env.get("TRAVIS_BRANCH");
        if (revision == null || branch == null) return null;
        String tag = null;
        String repoSlug = env.get("TRAVIS_REPO_SLUG");
        String projectName = repoSlug.split("/")[1];
        return new CIEnvironment(
                "Travis CI",
                revision,
                branch,
                tag,
                projectName
        );
    }
private static CIEnvironment detectTravis ( Map < String , String > env ) { String revision = env . get ( "TRAVIS_COMMIT" ) ; String branch = env . get ( "TRAVIS_BRANCH" ) ; if ( revision == null || branch == null ) return null ; String tag = null ; String repoSlug = env . get ( "TRAVIS_REPO_SLUG" ) ; String projectName = repoSlug . split ( "/" ) [ 1 ] ; return new CIEnvironment ( "Travis CI" , revision , branch , tag , projectName ) ; }
https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
https : // docs . travis - ci . com / user / environment - variables / #Default - Environment - Variables