Skip to content

Instantly share code, notes, and snippets.

@elalemanyo
Created August 21, 2018 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elalemanyo/bb1bbe7d3e45c16bd2876c2e394002a2 to your computer and use it in GitHub Desktop.
Save elalemanyo/bb1bbe7d3e45c16bd2876c2e394002a2 to your computer and use it in GitHub Desktop.
Run line "starting with" inside travis.yml
travis() {
command=$(grep -oP "(?<=- )$1.*" .travis.yml);
echo -e "\e[1;32mRunning: $command\e[0m\n";
eval $command;
}
@elalemanyo
Copy link
Author

Simple function to run line "starting with" inside your project .travis.yml file.
Run: travis css-lint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment