diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-05-28 22:45:13 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-05-28 22:45:13 +0300 |
commit | d2d1f778662268a414dccf011f673d3a62713c1d (patch) | |
tree | 3a5a2bd499613dc8917e130a856f730211fab4e4 /.travis.yml | |
parent | 28b555d2c8373199dcd4341a65f24e81f7760e7e (diff) | |
download | meson-d2d1f778662268a414dccf011f673d3a62713c1d.zip meson-d2d1f778662268a414dccf011f673d3a62713c1d.tar.gz meson-d2d1f778662268a414dccf011f673d3a62713c1d.tar.bz2 |
Copy contents of current checkout into Docker container. This should make MR builds work properly.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index e4a59e5..7f3617d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,13 @@ services: 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: - - docker cp /home/travis/mesonbuild/meson jpakkane/mesonci:xenial:/root - - docker run jpakkane/mesonci:xenial /bin/sh -c "cd /root/meson && ./run_tests.py" + - 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" |