chore: extract script for Travis CI