COnfigured for Travis (well, stole code from sendaspdf)