You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-scripts/template/README.md
+22-2Lines changed: 22 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -791,15 +791,35 @@ Note that tests run much slower with coverage so it is recommended to run it sep
791
791
792
792
By default `npm test` runs the watcher with interactive CLI. However, you can force it to run tests once and finish the process by setting an environment variable called `CI`. Popular CI servers already set it by default but you can do this yourself too:
793
793
794
-
#### Windows (cmd.exe)
794
+
### On CI servers
795
+
#### Travis CI
796
+
797
+
1. Following the [Travis Getting started](https://docs.travis-ci.com/user/getting-started/) guide for syncing your Github repository with Travis. You may need to initialize some settings manually in your [profile](https://travis-ci.org/profile) page.
798
+
1. Add a `.travis.yml` file to your git repository.
799
+
```
800
+
language: node_js
801
+
node_js:
802
+
- 4
803
+
- 6
804
+
cache:
805
+
directories:
806
+
- node_modules
807
+
script
808
+
- npm test
809
+
```
810
+
1. Trigger your first build with a git push.
811
+
1. [Customize your Travis CI Build](https://docs.travis-ci.com/user/customizing-the-build/) if needed.
0 commit comments