Refactor Travis build script

Signed-off-by: yorah <yoram.harmelin@gmail.com>