0xflotus
fd77ea924a
fixed small error
2020-09-22 22:27:16 +02:00
Igor Chubin
1056ed815e
Merge pull request #234 from mmqmzk/patch-1
...
Fix run tests fail.
2020-09-16 21:41:39 +02:00
Kun Zhou
f8314ee568
Fix typo
...
Fix typo changed in upstream.
2020-09-07 17:25:25 +08:00
Igor Chubin
9f99bec1f0
fix: run-tests.sh: fixed cht.sh.txt path discovery
2020-08-06 08:02:27 +02:00
Igor Chubin
ce8484fc2d
fix: show integer weights for "Unknown topic" suggestions
2020-08-06 07:55:39 +02:00
Igor Chubin
1c3bec6a7f
updated tests
2020-08-06 07:28:08 +02:00
Igor Chubin
43e06193c3
updated expected test results
2020-08-06 07:04:53 +02:00
Igor Chubin
3b50095833
tests/run-tests.sh: minor fix
2020-08-06 06:53:16 +02:00
Igor Chubin
b45af37fba
Merge branch 'master' of https://github.com/chubin/cheat.sh
2020-08-06 04:35:22 +00:00
Igor Chubin
318541c8ae
regression fix
2020-08-06 04:35:14 +00:00
Igor Chubin
cd905f76e1
Merge pull request #224 from abitrolly/run-tests
...
Run tests on Travis CI
2020-08-06 06:31:20 +02:00
Igor Chubin
7578ab7bb0
minifix
2020-08-06 06:30:54 +02:00
Igor Chubin
18e851ce80
Merge branch 'master' into run-tests
2020-08-06 06:27:05 +02:00
Igor Chubin
dfc7612ac9
Merge branch 'master' of https://github.com/chubin/cheat.sh
2020-08-05 09:47:29 +02:00
Igor Chubin
80ded6938c
fixed search ( #147 , #225 )
2020-08-05 09:46:36 +02:00
Igor Chubin
82d1db3a1f
cht.sh.txt: fixed bug with custom installdir location; semantic versioning; ver 0.0.1
2020-08-05 09:40:56 +02:00
Igor Chubin
78af6ced14
run-tests.sh: CHEATSH_UPDATE_TESTS_RESULTS=YES support
2020-08-05 09:38:00 +02:00
Igor Chubin
4b701fba3d
updated test results
2020-08-05 09:37:11 +02:00
Anatoli Babenia
b74707a109
Redis doesn't need to be Strict
...
https://github.com/andymccurdy/redis-py#client-classes-redis-and-strictredis
2020-08-01 06:10:03 +03:00
Anatoli Babenia
ca88810936
run-tests.sh Quotes are not needed in default param
2020-08-01 06:06:49 +03:00
Anatoli Babenia
36a7cd3fc5
Set proper config names and update docker status in README.md
...
The proper config name for Redis host is CHEATSH_CACHE_REDIS_HOST
and for disabling cache the var is CHEATSH_CACHE_TYPE.
2020-08-01 00:54:09 +03:00
Anatoli Babenia
91320d921d
Set Redis host using cheat.sh config framework
...
https://github.com/chubin/cheat.sh/blob/f5d5fae71218e771e84b896600b2504c0d8814ec/lib/config.py
2020-08-01 00:41:05 +03:00
Anatoli Babenia
ee273e2d51
Now fixing connection to Redis on Travis Docker
...
Default `localhost:6379` doesn't work there. Trying to set
REDIS_HOST advertised in `run-tests.sh`
2020-07-31 19:29:43 +03:00
Anatoli Babenia
acd07d27c1
Override files needs a version too
2020-07-31 16:56:30 +03:00
Anatoli Babenia
198a2c41c9
Add --debug option to chtsh container the docker-compose way
2020-07-31 16:43:14 +03:00
Anatoli Babenia
ca55415659
Check docker logs with unbuffered Python again
2020-07-31 15:12:56 +03:00
Anatoli Babenia
f62fb51d3f
View container log without docker-compose
2020-07-31 14:54:52 +03:00
Anatoli Babenia
2e1d8041c9
Try docker-compose logs with no color
2020-07-31 14:46:44 +03:00
Anatoli Babenia
10bfaab38c
Modern DevOps is a PITA
...
Run Python 3 in unbuffered mode to see lines in `docker logs` as
soon as they appear. When Python 3 is not attached to a terminal,
it turns on the buffering, like when `docker` runs in a background.
2020-07-31 13:31:31 +03:00
Anatoli Babenia
5dab632e21
Try --no-color to avoid log output being stripped by Travis
2020-07-31 10:09:19 +03:00
Anatoli Babenia
9a495a7615
Try to show container log in case of error on Travis
2020-07-31 09:57:20 +03:00
Anatoli Babenia
6be6a25c2a
docker-compose run requires explicit port permission
2020-07-31 09:34:00 +03:00
Anatoli Babenia
be9d3a70fe
Run cheat.sh service (app) by docker-compose in debug mode
...
This would allow later inspection of stdout.
Assigned names to image and container to avoid confusion.
Build is done separately to clean up the output.
2020-07-31 09:25:04 +03:00
Anatoli Babenia
10326234ff
Fix btrfs test drift as trailing whitespaces were fixed
...
https://github.com/chubin/cheat.sheets/commit/d7473ac185bc4309b5d4aa55761233e974c5f80d#diff-8d0f560b012648accbca6af7a3356d61
2020-07-31 04:57:12 +03:00
Anatoli Babenia
e0f84e8b3a
Pipe colored diffs
2020-07-30 23:17:01 +03:00
Anatoli Babenia
a0d344c38d
Use http://localhost:8002 for default tests CHTSH_URL
2020-07-30 23:03:44 +03:00
Anatoli Babenia
5737a1606a
Use unified diff format
2020-07-30 22:43:32 +03:00
Anatoli Babenia
1387f8b6f8
Show test command executed when $show_details == YES
2020-07-30 22:37:34 +03:00
Anatoli Babenia
4610690ec3
Travis doesn't support bright colors, use 8 colors palette
...
And remove temporary `curl cht.sh` call
2020-07-30 22:20:58 +03:00
Anatoli Babenia
c0bbc245df
Run curl https://cht.sh to pinpoint Travis problems with ANSI
2020-07-30 17:51:12 +03:00
Anatoli Babenia
09dff20c9c
Add color to printed test names
2020-07-30 02:47:18 +03:00
Anatoli Babenia
60ae85e031
Show which test is being run
2020-07-30 02:24:54 +03:00
Anatoli Babenia
1a5aa6408f
Turn off standalone mode to run tests against remote server
2020-07-29 23:21:47 +03:00
Anatoli Babenia
1a1624e2e0
Detect Python version using Python
2020-07-29 22:59:09 +03:00
Anatoli Babenia
c515c56454
Use python3 command if virtualenv doesn't exist
2020-07-29 22:44:18 +03:00
Anatoli Babenia
3905047d62
Wait 3 seconds to let server to start
...
Because `docker-compose` is not capable of checking open ports
https://github.com/docker/compose/issues/374
2020-07-29 20:40:18 +03:00
Anatoli Babenia
06d8fa7fbd
cd to tests/ dir when runner is executed with relpath
2020-07-29 20:12:02 +03:00
Anatoli Babenia
40d18da4f7
Test server is up with curl before running tests
2020-07-29 20:06:31 +03:00
Anatoli Babenia
ce7b4c8ba3
Run tests on Travis CI
2020-07-29 19:56:36 +03:00
Igor Chubin
c17183cbec
Merge pull request #223 from abitrolly/fix-travis
...
Update Travis config
2020-07-29 15:44:08 +02:00