0
0
mirror of https://github.com/phpv8/v8js.git synced 2025-03-15 17:57:01 +00:00
phpv8/Makefile.travis

22 lines
512 B
Makefile
Raw Normal View History

# Configure and build scripts for travis CI system
2016-05-26 22:46:38 +02:00
V8VER ?= 5.1
export NO_INTERACTION=1
export REPORT_EXIT_STATUS=1
before_install:
2016-05-26 22:46:38 +02:00
sudo add-apt-repository ppa:pinepain/libv8-$(V8VER) -y
sudo apt-get update -q
install:
2016-05-26 23:04:28 +02:00
sudo apt-get install -y libv8-$(V8VER)-dev
# newer releases (E.g. 5.7) of the ppa install the headers and lib to /opt/libv8-VER
build:
phpize
if [ -d /opt/libv8-$(V8VER) ]; then ./configure --with-v8js=/opt/libv8-$(V8VER); else ./configure; fi
2016-05-26 22:46:38 +02:00
$(MAKE) -j3
test: build
$(MAKE) test