travis: move main script to separate file