[travis] updated before and after scripts