Open huonw opened 9 years ago
In the meantime, for those who stumble on this, here's the workaround for .travis.yml
as suggested by @huonw:
env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
I've seen "dev
" used as the name of this feature in the wild too.
Interesting corner case on this one: You can't set an empty environment variable in Windows. Setting an environment variable to "" deletes it.
Yes, you now have a travis-cargo
user on Windows / Appveyor. 😄
https://ci.appveyor.com/project/jdub/pathfinder/build/job/c54yd248q6qbeo8p
And this is not some quixotic quest! There is a working build for stable:
https://ci.appveyor.com/project/jdub/pathfinder/build/job/lvejvt96aflpd9xb
Currently travis-cargo will pass
--features $TRAVIS_CARGO_NIGHTLY_FEATURE
, or--features unstable
if that env var doesn't exist. It might be nice to make this more intelligent by default, by parsing the toml file to look for a feature eitherunstable
ornightly
and pass that, falling back to passing nothing if neither exist (but still obeying the env var override).