Skip to content

Commit

Permalink
Use docker to run tests. (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Apr 6, 2018
1 parent f531bd0 commit 9d9f783
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9d9f783

Please sign in to comment.