How to pin package to the master version? I need this for Travis testing.
Add a Pkg.add
to the test script.
Yes, thank you. Here is what I try now (in .travis.yml
):
before_script:
- julia -e 'using Pkg; Pkg.pin(PackageSpec(name="CxxWrap",version="0.8.1")); pkg"add Materials#master"; pkg"add FEMMaterials#master"'
This should work. But if your package really depends on a specific version of another, you could say so in [compat]
.
As for depending on master
, that is not something that can be enforced in [compat]
AFAIK, so perhaps the long run solution is making a release for those packages. (Note that I fully understand that these workarounds can be necessary, but they should be interim).