use travis hooks to build test instead of script when running under travis