separate build steps for travis lifecycle and add test run