Comments (4)
Hi Jason,
It looks like you are defining your env vars in a bit of an odd way.
And you have way too much going on in your before_script and after_script, instead why not use actual scripts?
eg. https://gist.github.com/joshk/7f20ffe14ded4a6dac79
That gist also has the corrected env var setup.
On 17/08/2013, at 10:58 AM, Jason Gross [email protected] wrote:
I am trying to use secure environment variables as per http://about.travis-ci.org/docs/user/build-configuration/#Secure-environment-variables. However, https://travis-ci.org/JasonGross/HoTT/builds/10304709 tells me that the secure environment variables are not available, despite this not being a pull request. And I put the output of travis encrypt -r JasonGross/HoTT "SSHKEY_PASSWORD=$password" into .travis.yml. What is wrong?
—
Reply to this email directly or view it on GitHub.
from travis.rb.
I will try putting everything into actual scripts. I normally want the secure variable to be global, and to run with the three triples BRANCH=trunk UPDATE_HTML="" COMMITISH=e88e47ca76200a5e52bd0f9397fe4900fa9b241b
, BRANCH=trunk UPDATE_HTML="yes" COMMITISH=HEAD
, and BRANCH=stable UPDATE_HTML="" COMMITISH=HEAD
, but I don't want to run any other combination of those environment variables (such as BRANCH=stable UPDATE_HTML="yes"
), and I want to allow the BRANCH=stable
one to fail. I had simply commented the other two out for now. Is there a better way to do this than defining all the variables on a single line in matrix? Additionally, I don't see other differences in the gist other than spacing; is the working of secure variables sensitive to spacing, or to only having a single env variable on each line?
from travis.rb.
Ah, after moving things to scripts, I saw that the problem was that the problem was that I had put the allow-failures part in the middle of declaring environment variables, rather than at the end of it.
from travis.rb.
Ahhh, good to know you found the issue. Happy testing :)
from travis.rb.
Related Issues (20)
- Add feature to print the expanded job matrix
- Could not download rvm-installer in travis ci HOT 4
- how can i move to my repo in travis in linux system?i will appreciate you if you tell me the command
- Login report! Help needed.
- node_js lts/* failing on Windows HOT 1
- travis-build compile undefined method 'jobs' for nil:NilClass error HOT 1
- `travis open --github` not respecting `travis endpoint --github`
- logging in via travis-ci.org failed. HOT 1
- Error install travis - minitest requires Ruby version < 4.0, >= 2.6. The current ruby version is 2.5.0 HOT 1
- Does this support Assembla or the other beta accounts?
- update go back to base version
- ArgumentError: tried to create Proc object without a block HOT 4
- `raw` command fails for no apparent reason HOT 1
- `raw` command fails for no apparent reason
- open
- Error: resource not found ({} ) when running travis command HOT 1
- Any cli command results in resource not found error HOT 4
- Problem with uploading secret files HOT 1
- Viewsource_sever
- Encrypting Files Failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from travis.rb.