mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 07:01:52 +00:00
Use Docker w/ ubuntu:xenial base image on Travis
This commit is contained in:
parent
9a1e76b592
commit
ddfb9ec012
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,6 +2,7 @@
|
||||
*.o
|
||||
.deps
|
||||
.libs
|
||||
Dockerfile.tmp
|
||||
Makefile
|
||||
Makefile.fragments
|
||||
Makefile.global
|
||||
|
18
.travis.yml
18
.travis.yml
@ -1,15 +1,21 @@
|
||||
language: php
|
||||
sudo: required
|
||||
dist: trusty
|
||||
|
||||
php:
|
||||
- 7.0
|
||||
- 7.1
|
||||
services:
|
||||
- docker
|
||||
|
||||
env:
|
||||
- V8VER=6.5
|
||||
PHPVER=7.0
|
||||
- V8VER=6.3
|
||||
PHPVER=7.0
|
||||
- V8VER=6.5
|
||||
PHPVER=7.1
|
||||
- V8VER=6.3
|
||||
PHPVER=7.1
|
||||
- V8VER=6.5
|
||||
PHPVER=7.2
|
||||
- V8VER=6.3
|
||||
PHPVER=7.2
|
||||
|
||||
before_install: make -f Makefile.travis before_install
|
||||
install: make -f Makefile.travis install
|
||||
script: make -f Makefile.travis test
|
||||
|
22
Dockerfile.travis
Normal file
22
Dockerfile.travis
Normal file
@ -0,0 +1,22 @@
|
||||
FROM ubuntu:xenial
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
ENV LC_ALL=C.UTF-8
|
||||
ENV NO_INTERACTION=1
|
||||
ENV REPORT_EXIT_STATUS=1
|
||||
|
||||
RUN apt-get update -q
|
||||
RUN apt-get install -y software-properties-common
|
||||
|
||||
RUN add-apt-repository ppa:ondrej/php
|
||||
RUN add-apt-repository ppa:pinepain/libv8-$V8VER -y
|
||||
RUN apt-get update -q
|
||||
|
||||
RUN apt-get install -y php$PHPVER-dev libv8-$V8VER-dev
|
||||
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
|
||||
RUN phpize
|
||||
RUN ./configure CXXFLAGS="-Wall -Wno-write-strings -Werror" LDFLAGS="-lstdc++" --with-v8js=/opt/libv8-$V8VER/
|
||||
RUN make -j4
|
@ -1,20 +1,14 @@
|
||||
# Configure and build scripts for travis CI system
|
||||
V8VER ?= 6.3
|
||||
|
||||
IMAGENAME ?= v8js-test
|
||||
|
||||
export NO_INTERACTION=1
|
||||
export REPORT_EXIT_STATUS=1
|
||||
|
||||
before_install:
|
||||
sudo add-apt-repository ppa:pinepain/libv8-$(V8VER) -y
|
||||
sudo apt-get update -q
|
||||
|
||||
install:
|
||||
sudo apt-get install -y libv8-$(V8VER)-dev
|
||||
|
||||
build:
|
||||
phpize
|
||||
./configure CXXFLAGS="-Wall -Wno-write-strings -Werror"
|
||||
$(MAKE) -j3
|
||||
envsubst < Dockerfile.travis > Dockerfile.tmp
|
||||
docker build -t $(IMAGENAME) -f Dockerfile.tmp .
|
||||
|
||||
test: build
|
||||
$(MAKE) test
|
||||
docker run --rm -t $(IMAGENAME) make test
|
||||
|
Loading…
Reference in New Issue
Block a user