Use faster way to build on CI

Enables shallow clone on AppVeyor:
www.appveyor.com/docs/how-to/repository-shallow-clone

Uses container-based build on Travis CI:
http://goo.gl/m6glri