2013-10-11 23:58:32 -04:00
|
|
|
# Configure and build scripts for travis CI system
|
2016-05-26 22:46:38 +02:00
|
|
|
V8VER ?= 5.1
|
2013-10-11 23:58:32 -04:00
|
|
|
|
|
|
|
export NO_INTERACTION=1
|
2013-10-25 17:43:36 -04:00
|
|
|
export REPORT_EXIT_STATUS=1
|
2013-10-11 23:58:32 -04:00
|
|
|
|
|
|
|
before_install:
|
2016-05-26 22:46:38 +02:00
|
|
|
sudo add-apt-repository ppa:pinepain/libv8-$(V8VER) -y
|
|
|
|
sudo apt-get update -q
|
2013-10-11 23:58:32 -04:00
|
|
|
|
|
|
|
install:
|
2016-05-26 23:04:28 +02:00
|
|
|
sudo apt-get install -y libv8-$(V8VER)-dev
|
2013-10-11 23:58:32 -04:00
|
|
|
|
2016-08-01 14:26:45 -07:00
|
|
|
# newer releases (E.g. 5.7) of the ppa install the headers and lib to /opt/libv8-VER
|
2013-10-11 23:58:32 -04:00
|
|
|
build:
|
|
|
|
phpize
|
2016-08-01 14:26:45 -07:00
|
|
|
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
|
2013-10-11 23:58:32 -04:00
|
|
|
|
|
|
|
test: build
|
|
|
|
$(MAKE) test
|