How can I connect Coveralls and Travis to GitHub?

I currently have TravisCI on PR in the public GitHub repository. Instructions for Coveralls say to put this in a .coveralls.yml file:

service_name: travis-pro
repo_token: <my_token>

This does not work for me, because the .coveralls.yml file will be publicly verified on GitHub. My TravisCI is integrated into my GitHub relay connected to the branch and works on PR.

So, I tried this:

On the TravisCI website, I installed the var environment:

COVERALLS_REPO_TOKEN to my token value.

Then modify my .travis.yml so it looks like this:

language: scala
scala:
   - 2.11.7
notifications:
  email:
    recipients:
      - me@my_email.com
jdk:
  - oraclejdk8
script: "sbt clean coverage test"
after_success: "sbt coverageReport coveralls"
script:
  - sbt clean coverage test coverageReport &&
    sbt coverageAggregate
after_success:
  - sbt coveralls

, PR , - , Travis, . , - " ".

?

EDIT: .coveralls.yml service_name: travis-ci , .

+4
1

?

1 -

, , - Coveralls .

- http://coveralls.io:

enter image description here

2 - Travis-CI, Coveralls

.travis.yml script after_success. , :

language: scala
scala:    2.11.7
jdk:      oraclejdk8

script: "sbt clean coverage test"

after_success: "sbt coveralls"

notifications:
  email:
    recipients:
      - me@my_email.com

, , script. .

, after_success. , .

.coveralls

.coveralls :

  • public Travis-CI repos , Coveralls API ( )
  • repo_token ( Coveralls) . , .

: :

  • ,
  • Travis-Pro . "travis-pro" :

    service_name: travis-pro
    repo_token: ...
    
+5

Source: https://habr.com/ru/post/1654632/


All Articles