This repository was archived by the owner on Mar 29, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-25
lines changed Expand file tree Collapse file tree 2 files changed +11
-25
lines changed Original file line number Diff line number Diff line change 88 global :
99 - V8=6.3
1010 matrix :
11- - PHP=7.1
12- - PHP=7.1 TEST_PHP_ARGS=-m
13- - PHP=7.2
14- - PHP=7.2 TEST_PHP_ARGS=-m
11+ - TAG=xenial-v8-63-php-71
12+ - TAG=xenial-v8-63-php-71 TEST_PHP_ARGS=-m
13+ - TAG=xenial-v8-63-php-72
14+ - TAG=xenial-v8-63-php-72 TEST_PHP_ARGS=-m
1515
1616before_install :
17- - docker build -t ${TRAVIS_REPO_SLUG}:${V8}-${PHP} --build-arg V8=${V8} --build-arg PHP=${PHP} .
17+ # docker on travis doesn't allow anything before FROM, let's fix that
18+ - sed -i -e "s/\${TAG}/$TAG/g" Dockerfile && sed -i -e '1,2d' Dockerfile
19+ - docker build -t ${TRAVIS_REPO_SLUG}:${V8}-${PHP} --build-arg TAG=${TAG} .
1820
1921script :
2022 - docker run -e TEST_PHP_ARGS ${TRAVIS_REPO_SLUG}:${V8}-${PHP} bash -c "make test | tee result.txt; ./test-report.sh"
Original file line number Diff line number Diff line change 1- FROM ubuntu: xenial
1+ ARG TAG= xenial-v8-63-php-72
22
3- ARG V8=6.3
4- ARG PHP=7.1
5-
6- ENV DEBIAN_FRONTEND noninteractive
7- ENV TERM=xterm-256color
8-
9- RUN echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main" > /etc/apt/sources.list.d/ondrej-php-xenial.list && \
10- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C && \
11- echo "deb http://ppa.launchpad.net/pinepain/libv8-${V8}/ubuntu xenial main" > /etc/apt/sources.list.d/pinepain-libv8-xenial.list && \
12- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40ECBCF960C60AA4 && \
13- apt-get update && \
14- apt-get install -y libv8-${V8} libv8-${V8}-dev libv8-${V8}-dbg && \
15- apt-get install -y valgrind && \
16- apt-get install -y php${PHP} php${PHP}-cli php${PHP}-dev php${PHP}-fpm && \
17- rm -rf /var/lib/apt/lists/* && \
18- php -i && \
19- php-config || true && \
20- echo 'variables_order = "EGPCS"' >> `php --ini | grep "Loaded Configuration File" | awk '{print $4}' ` && \
21- mkdir /root/php-v8
3+ FROM pinepain/php-v8-docker:${TAG}
224
235COPY . /root/php-v8
246COPY ./scripts/provision/.bashrc /root/.bashrc
257
268WORKDIR /root/php-v8
279
10+ RUN php -i && php-config || true
11+
2812RUN phpize && ./configure && make
You can’t perform that action at this time.
0 commit comments