diff --git a/.travis.yml b/.travis.yml index 56f4ba9ac..5a218a492 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,22 @@ +sudo: required + language: python + +services: + - docker + +env: + - DOCKER_COMPOSE_VERSION=1.21.1 + +before_install: + - 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: - pip install -r requirements-dev.txt + script: - bash tests/scripts/unit_tests.sh + - travis_wait docker-compose build diff --git a/Dockerfile b/Dockerfile index 703ede915..8eb10a6e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,12 +19,13 @@ libtool \ python-dev \ jq \ g++ \ -make +make \ +freetype-dev # clone the repo && Install pre-reqs for pyjq COPY . /opt/cloudmapper -RUN pip install pipenv && pipenv --two && pipenv install +RUN pip install pipenv && pipenv --two && PIP_NO_BUILD_ISOLATION=false pipenv install RUN chmod +x entrypoint.sh && touch config.json