Skip to content
This repository
Browse code

Added Travis CI testing

  • Loading branch information...
commit c846bfcb682297595b6d24f898f7b0b658e8a287 1 parent cf91964
authored August 06, 2012

Showing 2 changed files with 13 additions and 16 deletions. Show diff stats Hide diff stats

  1. 7  .travis.yml
  2. 22  README.md
7  .travis.yml
... ...
@@ -0,0 +1,7 @@
  1
+language: node_js
  2
+node_js:
  3
+    - "0.8"
  4
+    - "0.6"
  5
+    - "0.4"
  6
+before_script:
  7
+    - "npm install --dev"
22  README.md
Source Rendered
@@ -93,7 +93,7 @@ ftp.raw.rmd("/example_dir", function(err, data) {
93 93
 ```
94 94
 
95 95
 You can find more usage examples in the unit tests for it. This documentation
96  
-will grow as jsftp evolves, I promise!
  96
+will grow as jsftp evolves.
97 97
 
98 98
 
99 99
 API
@@ -125,7 +125,7 @@ generated when the user authenticates with the `auth` method.
125 125
 
126 126
 ### Methods
127 127
 
128  
-#### Ftp.raw.FTP_COMMAND([params], callback)
  128
+#### Ftp.raw["FTP_COMMAND"]([params], callback)
129 129
 All the standard FTP commands are available under the `raw` namespace. These
130 130
 commands might accept parameters or not, but they always accept a callback
131 131
 with the signature `err, data`, in which `err` is the error response coming
@@ -175,22 +175,12 @@ From GitHub:
175 175
 Tests
176 176
 -----
177 177
 
178  
-The test script fires up by default the FTP server that comes with OSX. You
179  
-will have to put your OSX user credentials in `jsftp_test.js` if you want to
180  
-run it. If you are not on OSX, feel free to change the FTP host, port and
181  
-credentials to point to a remote server.
  178
+To run the tests from the command line:
182 179
 
183  
-To run the tests in the command line:
  180
+    node test/jsftp_test.js
184 181
 
185  
-    node jsftp_test.js
186  
-
187  
-If tests are failing it might be that your user doesn't have enough rights to
188  
-run the FTP service. In that case you should run the tests as `sudo`:
189  
-
190  
-    sudo node jsftp_test.js
191  
-
192  
-Please note that running scripts as sudo is dangerous and you will grant the
193  
-script to do anything in your server. You should do it at your own risk.
  182
+Please note that for now the unit tests require python because the FTP server
  183
+used is written in python. In the future this dependency will not be there.
194 184
 
195 185
 
196 186
 License

0 notes on commit c846bfc

Please sign in to comment.
Something went wrong with that request. Please try again.