This repository was archived by the owner on Mar 29, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +50
-30
lines changed Expand file tree Collapse file tree 4 files changed +50
-30
lines changed Original file line number Diff line number Diff line change 1- sudo : required
21dist : trusty
2+ sudo : required
33
4- language : php
5-
6- php :
7- - 7.1
8- - nightly
9-
10- matrix :
11- allow_failures :
12- - php : nightly
4+ services :
5+ - docker
136
147env :
158 global :
16- - NO_INTERACTION=1
17- - TEST_TIMEOUT=120
18- matrix :
199 - V8=6.3
20- - V8=6.3 TEST_PHP_ARGS=-m
10+ 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
2115
2216before_install :
23- - sudo add-apt-repository ppa:pinepain/libv8-${V8} -y
24- - sudo apt-get update -q
25- - sudo apt-get install -y libv8-${V8}-dev libv8-${V8}-dbg
26- - php -i
27- - php-config || true
28-
29- before_script :
30- - echo 'variables_order = "EGPCS"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
31- - phpize && ./configure && make
17+ - docker build -t ${TRAVIS_REPO_SLUG}:${V8}-${PHP} --build-arg V8=${V8} --build-arg PHP=${PHP} .
3218
3319script :
34- - sh -c "make test | tee result.txt"
35- - sh test-report.sh
36-
37- addons :
38- apt :
39- packages :
40- - valgrind
20+ - 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+ {
2+ <docker_specific_report>
3+ Memcheck:Free
4+ fun:free
5+ fun:deallocate
6+ fun:deallocate
7+ fun:_M_destroy
8+ fun:_M_dispose
9+ fun:~basic_string
10+ ...
11+ }
Original file line number Diff line number Diff line change 11--gen-suppressions=all
22--suppressions=./.valgrind-v8.supp
3+ --suppressions=./.valgrind-docker.supp
Original file line number Diff line number Diff line change 1+ FROM ubuntu:xenial
2+
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
22+
23+ COPY . /root/php-v8
24+ COPY ./scripts/provision/.bashrc /root/.bashrc
25+
26+ WORKDIR /root/php-v8
27+
28+ RUN phpize && ./configure && make
You can’t perform that action at this time.
0 commit comments