forked from AzuraCast/AzuraCast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (27 loc) · 1.04 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
git:
depth: 1
env:
DOCKER_COMPOSE_VERSION: 1.19.0
sudo: required
dist: trusty
services:
- docker
before_install:
# Install Docker
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
# Install Docker Compose
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
- echo $TRAVIS_BUILD_DIR
- chmod 777 $TRAVIS_BUILD_DIR/tests/_output/
- cp azuracast.sample.env azuracast.env
- docker-compose -f docker-compose.sample.yml -f docker-compose.testing.yml build cli
- docker-compose -f docker-compose.sample.yml -f docker-compose.testing.yml run --rm cli azuracast_install
script:
- docker-compose -f docker-compose.sample.yml -f docker-compose.testing.yml run --rm cli vendor/bin/codecept run --no-interaction --coverage --coverage-xml --fail-fast
after_failure:
- cat tests/_output/*.html