зеркало из https://github.com/mozilla/MozDef.git
24 строки
761 B
YAML
24 строки
761 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:
|
|
# Verify pep8
|
|
- docker run -it mozdef_tester bash -c "source /opt/mozdef/envs/python/bin/activate && flake8 --config .flake8 ./"
|
|
# 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"
|