move building before testing in travis.yml