diff --git a/.travis.yml b/.travis.yml index a6f3d116..ab57f9f3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,11 @@ +sudo: required + language: php -php: - - 7.0.13 - - 7.1 - - 7.2 -install: composer install -before_script: - - sudo apt-get build-dep curl - - pushd /tmp - - wget https://curl.haxx.se/download/curl-7.57.0.tar.bz2 - - tar -xvjf curl-7.57.0.tar.bz2 - - cd curl-7.57.0 - - ./configure --with-ssl - - make - - sudo make install - - sudo ldconfig - - curl --version - - popd -script: vendor/bin/paratest -p 2 +services: + - docker + +before_install: + - docker build -t sdk . + +script: docker run sdk diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..69723945 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM ubuntu:16.04 + +RUN apt update && apt install -y php7.0 php7.0-curl php7.0-mbstring php7.0-xml composer wget tar bzip2 + +RUN mkdir /sdk_php +COPY . /sdk_php +WORKDIR /sdk_php +RUN composer install + +CMD vendor/bin/paratest -p 2 \ No newline at end of file