You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project relies on docker during integration runs, because docker enables testing of Linux distributions (Centos) that aren't available for CI out-of-the-box
Running from within docker seems to the cause of the issue
Workaround:
Coverage output is uploaded correctly when token is added via .coveralls.yml
I'd prefer not to use the token in an open source project, but this seems the only way. Unless I can export the CI environment information into the docker container, such that the upload script can detect the CI environment.
Questions:
What does the coverage upload script do to discover information that indicates it is being run from within an CI service?
How can I export that information into the scope of the docker container (travis-ci, circle-ci), so that I don't have to use a token?
The text was updated successfully, but these errors were encountered:
FROM ubuntu:18.04
# Because there is no package cache in the image, you need to run:
RUN apt update
# Install nodejs
RUN apt install curl gnupg -y
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -
RUN apt update
RUN apt install -y nodejs
# Install tty-table
RUN apt install git -y
RUN git clone https://www.github.com/tecfu/tty-table
# Install dev dependencies
WORKDIR /tty-table
RUN npm install
# Run unit tests & report coverage
RUN node -v
# RUN npx mocha
RUN npm run coverage
# RUN npm run npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov -t $myToken
RUN npx nyc report --reporter=text-lcov | npx coveralls
Problem:
When attempting to send coverage output to coveralls.io from within a docker container running on travis-CI:
$ npx nyc report --reporter=text-lcov | npx coveralls
I get the following error output:
Environment:
continuous integration server: travis-ci
os: linux
dist: trusty
Details:
Workaround:
Coverage output is uploaded correctly when token is added via .coveralls.yml
I'd prefer not to use the token in an open source project, but this seems the only way. Unless I can export the CI environment information into the docker container, such that the upload script can detect the CI environment.
Questions:
The text was updated successfully, but these errors were encountered: