blob: 1d66f6ebabc8fb86eed0656bce86ab2c9c57a8d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
language: bash
sudo: required
services:
- docker
before_script:
- docker pull eciavatta/caronte-env
- docker pull mongo:4
- docker-compose -f docker-compose.testing.yml up -d --build
script: >-
docker ps -a &&
docker logs -f $(docker ps -a -q --filter="name=caronte_caronte") | grep "travis" |
(read status; if [[ $status == "travis_tests_fails" ]]; then exit 1; fi)
after_success:
- docker cp "$(docker ps -a -q --filter='name=caronte_caronte'):/caronte/coverage.txt" coverage.txt
- bash <(curl -s https://codecov.io/bash)
after_script:
- docker logs $(docker ps -a -q --filter="name=caronte_caronte")
- docker-compose -f docker-compose.testing.yml down
|