Skip to content

Commit 9dc1caa

Browse files
committed
Update travis config
1 parent 2e5a565 commit 9dc1caa

File tree

2 files changed

+14
-24
lines changed

2 files changed

+14
-24
lines changed

.travis.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
language: php
2+
sudo: required
3+
dist: trusty
4+
25
php:
3-
- 5.6
4-
- 5.5
5-
- 5.4
6-
- 5.3
6+
- 7.0
7+
78
env:
8-
- V8VER=3.22.22
9-
- V8VER=3.21.12
9+
- V8VER=5.2
10+
- V8VER=5.1
11+
1012
before_install: make -f Makefile.travis before_install
1113
install: make -f Makefile.travis install
1214
script: make -f Makefile.travis test

Makefile.travis

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,20 @@
11
# Configure and build scripts for travis CI system
2-
V8VER ?= 3.22.10
3-
CPPVER ?= 4.6
4-
5-
export CXX=g++-$(CPPVER)
6-
export LINK=g++-$(CPPVER)
2+
V8VER ?= 5.1
73

84
export NO_INTERACTION=1
95
export REPORT_EXIT_STATUS=1
106

117
before_install:
12-
sudo apt-get update
8+
sudo add-apt-repository ppa:pinepain/libv8-$(V8VER) -y
9+
sudo apt-get update -q
1310

14-
# install dependencies (php5, v8)
1511
install:
16-
sudo apt-get install php5-cli php5-dev g++-$(CPPVER)
17-
-$(RM) -rf $(V8VER).tar.gz v8-$(V8VER) v8-build
18-
wget https://github.com/v8/v8/archive/$(V8VER).tar.gz
19-
tar -xzf $(V8VER).tar.gz
20-
$(MAKE) -C v8-$(V8VER) dependencies
21-
$(MAKE) -C v8-$(V8VER) native library=shared -j4
22-
mkdir -p v8-build/lib v8-build/include
23-
cp v8-$(V8VER)/out/native/lib.target/lib*.so v8-build/lib/
24-
cp v8-$(V8VER)/include/v8* v8-build/include/
12+
sudo apt-get install php7.0-cli php7.0-dev libv8-$(V8VER)-dev
2513

2614
build:
2715
phpize
28-
./configure --with-v8js=$(realpath ./v8-build)
29-
$(MAKE)
16+
./configure
17+
$(MAKE) -j3
3018

3119
test: build
3220
$(MAKE) test

0 commit comments

Comments
 (0)