sudo: required

language: c

services:
  - docker

before_install:
  - docker pull jpakkane/mesonci:xenial

script:
  - docker cp /home/travis/mesonbuild/meson jpakkane/mesonci:xenial:/root
  - docker run jpakkane/mesonci:xenial /bin/sh -c "cd /root/meson && ./run_tests.py"

sudo: required

language: c

services:
  - docker

before_install:
  - docker pull jpakkane/mesonci:xenial

# We need to copy the current checkout inside the container,
# because it has the MR id to be tested checked out.

script:
  - pwd
  - ls
  - echo FROM jpakkane/mesonci:xenial > Dockerfile
  - echo ADD . /root >> Dockerfile
  - docker build -t withgit .
  - docker run withgit /bin/sh -c "cd /root && ./run_tests.py"

Copy contents of current checkout into Docker container. This should make MR builds work properly.
Copy contents of current checkout into Docker container. This should make MR builds work properly.
