Anatoli Babenia
48c7fc60fa
Move all server init into before_install: section
2020-11-12 13:06:20 +03:00
Anatoli Babenia
80014fa037
Test "production" container on Travis
2020-11-12 12:48:02 +03:00
Anatoli Babenia
caa16b66b4
Use wget instead of curl to wait for container
...
Because even Ubuntu 20.04 version of `curl` is outdated
2020-11-04 19:33:11 +03:00
Anatoli Babenia
06a91fd953
Try newer Ubuntu with newer curl
2020-11-04 16:12:59 +03:00
Anatoli Babenia
8949a8eac8
Use curl retry flags for waiting for service
...
`--connect-timeout` didn't work, because Docker allows it, but breaks,
because nothing is listening on the other side, giving this error.
$ curl --connect-timeout 10 http://localhost:8002
curl: (56) Recv failure: Connection reset by peer
The command "curl --connect-timeout 10 http://localhost:8002 " exited with 56.
https://travis-ci.org/github/chubin/cheat.sh/builds/741348053#L401
`--retry-all` makes `curl` retry on all errors, including connection resets.
2020-11-04 15:14:11 +03:00
Anatoli Babenia
267c7d994e
.travis.yml Use curl with connection timeout
...
This should fix current build failure with timeout
https://travis-ci.org/github/chubin/cheat.sh/builds/741308362#L402
2020-11-04 12:51:01 +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
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
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
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
1a5aa6408f
Turn off standalone mode to run tests against remote server
2020-07-29 23:21:47 +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
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
Anatoli Babenia
a12fc16cb5
.travis.yml Show info about built images after compose start
...
The image size on my system is 399 MB.
2020-07-29 16:24:34 +03:00
Anatoli Babenia
8904e514c9
.travis.yml Switch to Ubuntu 18.04 with simplified Docker setup
2020-07-29 16:13:51 +03:00
Brandon Lopez
7a1e037974
Remove Sonarcloud -- whatever
2018-08-07 13:35:50 -07:00
Brandon Lopez
03531b89fc
Attempt travis sonarcloud fix
2018-08-07 13:28:26 -07:00
Brandon Lopez
9fcd941087
Remove some code smells per Sonarcloud
2018-08-07 13:17:28 -07:00
Brandon Lopez
1d042ed104
Stupid little issues with .travisci.yml, changed language to generic
2018-07-30 13:27:07 -07:00
Brandon Lopez
80dedbb9ea
Fix up .travisci.yml, compose up instead of start
2018-07-30 13:17:35 -07:00
Brandon Lopez
f5833732f5
Fix up .travisci.yml
2018-07-30 13:09:10 -07:00
Brandon Lopez
13ec7989db
TravisCI test
2018-07-30 13:01:25 -07:00