I am looking to restrict certain scripts in my .travis.yml
file to only run within the Travis CI build environment, and not on a user's local machine.
The configuration in the .travis.yml
would resemble this:
# .travis.yml
script:
- npm run deploy-from-travis-only
If there are alternative methods to achieve this, I am also willing to consider them.