Giter Club home page Giter Club logo

Comments (7)

drogus avatar drogus commented on May 23, 2024

I think that travis gem inserted the secure env var in a wrong way. This is definitely a bug, so I'll leave this issue open, but meanwhile you can get around it by generating secure string without --add option and adding it to the .travis.yml like this:

env:
  global:
    - secure: '............... secure string here ........................'

from travis.rb.

sarahhodne avatar sarahhodne commented on May 23, 2024

There's not necessarily anything wrong with the multiline version of the encrypted string, although I seem to remember there only being single newlines in the string, not double. If you look at the "single-line version" of the string you'll see \ns in there.

Looks to me like the issue is that it's doing this:

env:
  secure: ! ''

instead of

env:
  - secure: ! ''

The latter should work. The former, probably not, since it expands to this:

env: "decrypted string"

from travis.rb.

xcambar avatar xcambar commented on May 23, 2024

Unfortunately, that did not help.

Seethis build, I've intentionally output all the environment variables, mine being "COVERALLS_REPO_TOKEN", and it's unavailable.

The .travis.yml file is here.

from travis.rb.

xcambar avatar xcambar commented on May 23, 2024

@henrikhodne I didn't see your comment. I'll try it right now.

from travis.rb.

xcambar avatar xcambar commented on May 23, 2024

Failed. See https://travis-ci.org/xcambar/node-coveralls/builds/7867438

from travis.rb.

sarahhodne avatar sarahhodne commented on May 23, 2024

@xcambar I just thought of something. When you generate the encrypted variable, you do travis encrypt VAR=value, right? What project does the origin git remote point to (what URL does git remote show -n origin output)? Since you're working on a fork, this may point to the original repository, depending on how things are set up. If it is pointing to a different repo, then that's why this is happening. The travis gem uses the origin remote by default to determine what repository you want to encrypt. Try travis encrypt VAR=value -r xcambar/node-coveralls instead.

from travis.rb.

xcambar avatar xcambar commented on May 23, 2024

Congrats, you nailed it!
The build still fails, but now it's on me!

Thx for the help.

from travis.rb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.