test is ment for travis. If there is a building bug the building script should be fixed. main is for compiling at home if i remember correctly, ci and ci-dev for jenkins and test for travis. if you want travis todo something else than change the test task.