Closed bchretien closed 11 years ago
I think this expression should be built at runtime depending on what is defined, that should do the trick.
I prepared a patch that you may want to double-check (https://github.com/bchretien/jrl-travis/commit/51eeb00dd3049e910c9023e5d6a34b69983df999).
cc @gergondet Actually I got a better idea:
COVERITY_TOKEN?="\#EDITED\#"
GNUPG_PASSPHRASE?="\#EDITED\#"
etc.
This will fix the sed command without needing to generate the command which is error-prone. Also it is more portable IMHO.
Sorry for telling this late ^^''
I tried @thomas-moulard's idea without success, but this similar solution did the trick:
COVERITY_TOKEN=${COVERITY_TOKEN:-"\#EDITED\#"}
GNUPG_PASSPHRASE=${GNUPG_PASSPHRASE:-"\#EDITED\#"}
etc.
Being able to use Travis on forks makes pull requests much (much!) easier to check and handle. Sadly, I just found the following bug:
It seems to be caused by the anonymization process that fails if one of these variables is not found:
There may be some more errors that will shound discovered during the investigation.