aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: b59b12f7ca930800694e4c40b15e28d78eed6902 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
language: bash

sudo: required
services:
  - docker

before_script:
  - 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