MozDef/.travis.yml

21 строка
627 B
YAML

sudo: required
services:
- docker
branches:
# Restrict push builds to only master
only:
- master
before_install:
# Fail immediately on any error
- set -e
install:
# Build containers
- docker-compose -f tests/docker-compose.yml -p mozdef build
before_script:
# Start up resources needed for tests
- docker-compose -f tests/docker-compose.yml -p mozdef up -d
# Give some time for Elasticsearch to start up
- sleep 10
script:
# Run unit tests
- docker run -it --network=mozdef_default mozdef_tester bash -c "source /opt/mozdef/envs/python/bin/activate && py.test --delete_indexes --delete_queues tests"