MozDef/.travis.yml

27 строки
680 B
YAML

language: python
python:
- "3.6"
sudo: required
services:
- docker
branches:
# Restrict push builds to only master
only:
- master
env:
- DOCKER_COMPOSE_VERSION=1.22.0
before_install:
# Fail immediately on any error
- set -e
# See https://docs.travis-ci.com/user/docker/
- 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:
# Build containers
# Use BUILD_MODE=pull if you prefer pulling existing images
- make build-tests
script:
- make tests