File tree 2 files changed +28
-1
lines changed
2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,16 @@ install:
21
21
- pip install pycodestyle pylint rstcheck
22
22
23
23
script :
24
+ # Only run on one machine since the script currently assumes a hard coded
25
+ # port number.
26
+ - if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then ./test_remote.bash; fi
27
+
24
28
- ./test.py
25
29
26
30
- ./run_doctest.py -v download_lt.py
27
31
- if [ "$TRAVIS_PYTHON_VERSION" != "2.7" ]; then ./run_doctest.py -v README.rst; fi
28
32
29
- - bash test.bash
33
+ - ./ test.bash
30
34
31
35
# Smoke test.
32
36
- echo 'This is a sentence.' > foo.txt
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -eux
4
+
5
+ readonly port=8081
6
+
7
+ # TODO: Find this more portably.
8
+ readonly jar=' ./build/lib/language_check/LanguageTool-3.1/languagetool-server.jar'
9
+
10
+ java -cp " $jar " org.languagetool.server.HTTPServer --port " $port " &
11
+ java_pid=$!
12
+
13
+ clean ()
14
+ {
15
+ kill " $java_pid "
16
+ }
17
+ trap clean EXIT
18
+
19
+ echo ' This is okay.' | \
20
+ language-check --remote-host localhost --remote-port " $port " -
21
+
22
+ ! echo ' This is noot okay.' | \
23
+ language-check --remote-host localhost --remote-port " $port " -
You can’t perform that action at this time.
0 commit comments