Apply new format to snippets and template
This commit is contained in:
@ -5,7 +5,7 @@ tags: node,intermediate
|
||||
|
||||
Checks if the current environment is [Travis CI](https://travis-ci.org/).
|
||||
|
||||
Checks if the current environment has the `TRAVIS` and `CI` environment variables ([reference](https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables)).
|
||||
- Checks if the current environment has the `TRAVIS` and `CI` environment variables ([reference](https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables)).
|
||||
|
||||
```js
|
||||
const isTravisCI = () => 'TRAVIS' in process.env && 'CI' in process.env;
|
||||
@ -13,4 +13,4 @@ const isTravisCI = () => 'TRAVIS' in process.env && 'CI' in process.env;
|
||||
|
||||
```js
|
||||
isTravisCI(); // true (if code is running on Travis CI)
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user