mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 22:51:51 +00:00
Update travis config
This commit is contained in:
parent
2e5a565237
commit
9dc1caa5de
14
.travis.yml
14
.travis.yml
@ -1,12 +1,14 @@
|
|||||||
language: php
|
language: php
|
||||||
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- 5.6
|
- 7.0
|
||||||
- 5.5
|
|
||||||
- 5.4
|
|
||||||
- 5.3
|
|
||||||
env:
|
env:
|
||||||
- V8VER=3.22.22
|
- V8VER=5.2
|
||||||
- V8VER=3.21.12
|
- V8VER=5.1
|
||||||
|
|
||||||
before_install: make -f Makefile.travis before_install
|
before_install: make -f Makefile.travis before_install
|
||||||
install: make -f Makefile.travis install
|
install: make -f Makefile.travis install
|
||||||
script: make -f Makefile.travis test
|
script: make -f Makefile.travis test
|
||||||
|
@ -1,32 +1,20 @@
|
|||||||
# Configure and build scripts for travis CI system
|
# Configure and build scripts for travis CI system
|
||||||
V8VER ?= 3.22.10
|
V8VER ?= 5.1
|
||||||
CPPVER ?= 4.6
|
|
||||||
|
|
||||||
export CXX=g++-$(CPPVER)
|
|
||||||
export LINK=g++-$(CPPVER)
|
|
||||||
|
|
||||||
export NO_INTERACTION=1
|
export NO_INTERACTION=1
|
||||||
export REPORT_EXIT_STATUS=1
|
export REPORT_EXIT_STATUS=1
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
sudo apt-get update
|
sudo add-apt-repository ppa:pinepain/libv8-$(V8VER) -y
|
||||||
|
sudo apt-get update -q
|
||||||
|
|
||||||
# install dependencies (php5, v8)
|
|
||||||
install:
|
install:
|
||||||
sudo apt-get install php5-cli php5-dev g++-$(CPPVER)
|
sudo apt-get install php7.0-cli php7.0-dev libv8-$(V8VER)-dev
|
||||||
-$(RM) -rf $(V8VER).tar.gz v8-$(V8VER) v8-build
|
|
||||||
wget https://github.com/v8/v8/archive/$(V8VER).tar.gz
|
|
||||||
tar -xzf $(V8VER).tar.gz
|
|
||||||
$(MAKE) -C v8-$(V8VER) dependencies
|
|
||||||
$(MAKE) -C v8-$(V8VER) native library=shared -j4
|
|
||||||
mkdir -p v8-build/lib v8-build/include
|
|
||||||
cp v8-$(V8VER)/out/native/lib.target/lib*.so v8-build/lib/
|
|
||||||
cp v8-$(V8VER)/include/v8* v8-build/include/
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
phpize
|
phpize
|
||||||
./configure --with-v8js=$(realpath ./v8-build)
|
./configure
|
||||||
$(MAKE)
|
$(MAKE) -j3
|
||||||
|
|
||||||
test: build
|
test: build
|
||||||
$(MAKE) test
|
$(MAKE) test
|
||||||
|
Loading…
Reference in New Issue
Block a user