mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-03 10:21:51 +00:00
Hookup Travis continous integration test server.
This commit is contained in:
parent
d416d9b59b
commit
d75fc4a142
5
.travis.yml
Normal file
5
.travis.yml
Normal file
@ -0,0 +1,5 @@
|
||||
language: cpp
|
||||
compiler: gcc
|
||||
before_install: make -f Makefile.travis before_install
|
||||
install: make -f Makefile.travis install
|
||||
script: make -f Makefile.travis test
|
31
Makefile.travis
Normal file
31
Makefile.travis
Normal file
@ -0,0 +1,31 @@
|
||||
# Configure and build scripts for travis CI system
|
||||
V8VER=3.22.10
|
||||
CPPVER=4.6
|
||||
|
||||
export CXX=g++-$(CPPVER)
|
||||
export LINK=g++-$(CPPVER)
|
||||
|
||||
export NO_INTERACTION=1
|
||||
|
||||
before_install:
|
||||
sudo apt-get update
|
||||
|
||||
# install dependencies (php5, v8)
|
||||
install:
|
||||
sudo apt-get install php5-cli php5-dev g++-$(CPPVER)
|
||||
-$(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:
|
||||
phpize
|
||||
./configure --with-v8js=$(realpath ./v8-build)
|
||||
$(MAKE)
|
||||
|
||||
test: build
|
||||
$(MAKE) test
|
Loading…
Reference in New Issue
Block a user