Add before_script Event In Travis CI Config

Add before_script instated of before_install Event In Travis CI Config
because the Key chain needs to be added before build happens.