How to pin package to the master version?

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"'