From 9f854c53434fab4233f656451654b7f3da54ebb3 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sat, 28 Sep 2024 23:59:01 +0200 Subject: [PATCH] remove remains of old travis/jenkins/vagrant testenv stuff --- .dockerignore | 1 - .gitignore | 1 - .travis.yml | 15 ------- Commandfile | 72 ------------------------------ Dockerfile.jenkins | 22 ---------- Dockerfile.travis | 22 ---------- Jenkinsfile | 34 -------------- Makefile.travis | 16 ------- README.md | 3 +- Vagrantfile | 107 --------------------------------------------- 10 files changed, 1 insertion(+), 292 deletions(-) delete mode 100644 .travis.yml delete mode 100644 Commandfile delete mode 100644 Dockerfile.jenkins delete mode 100644 Dockerfile.travis delete mode 100644 Jenkinsfile delete mode 100644 Makefile.travis delete mode 100644 Vagrantfile diff --git a/.dockerignore b/.dockerignore index 6e46a23..967e56a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -40,7 +40,6 @@ tests/*.php tests/*.sh tests/*.mem -.vagrant tmp-php.ini coverage_report/** diff --git a/.gitignore b/.gitignore index 38419c7..10a94aa 100644 --- a/.gitignore +++ b/.gitignore @@ -41,7 +41,6 @@ tests/*.php tests/*.sh tests/*.mem -.vagrant tmp-php.ini coverage_report/** diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ff8c61e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: php -sudo: required - -services: - - docker - -env: - - V8VER=7.5 - PHPVER=7.1 - - V8VER=7.5 - PHPVER=7.2 - - V8VER=7.5 - PHPVER=7.3 - -script: make -f Makefile.travis test diff --git a/Commandfile b/Commandfile deleted file mode 100644 index 635f100..0000000 --- a/Commandfile +++ /dev/null @@ -1,72 +0,0 @@ -# -# Vagrant Commandfile -# (use with vagrant-devcommands plugin) -# - -command 'phpize', - description: 'executes "phpize" to configure source tree for installed PHP version', - script: 'cd /data/v8js && phpize' - -command 'configure', - description: 'executes "configure" to prepare build', - parameters: { - cxxflags: { default: "-ggdb -Wall -Wno-write-strings" }, - ldflags: { default: "-ggdb -lstdc++" }, - }, - script: <<-eof - bash -c 'cd /data/build; ../v8js/configure `bash -c "if test -d /opt/libv8-*; then echo -n --with-v8js=; echo /opt/libv8-*; fi"` `test -d "/usr/lib64" && echo --with-libdir=lib64` CXXFLAGS="%{cxxflags}" LDFLAGS="%{ldflags}"' - eof - -command 'clean', - description: 'executes "make clean"', - script: <<-eof - cd /data/build; `which gmake || which make` clean; rm -rf /data/v8js/coverage_report /data/build/gcov.info - eof - -command 'build', - description: 'executes "make"', - script: <<-eof - cd /data/build; `which gmake || which make` -j4 - eof - -command 'test', - description: 'executes "make test"', - parameters: { - tests: { wrap: "TESTS=tests/%s", optional: true }, - }, - script: <<-eof - cd /data/build; `which gmake || which make` test %{tests} NO_INTERACTION=1 REPORT_EXIT_STATUS=1 - eof - -command 'shell', - description: 'execute a PHP CLI interactive shell with V8Js loaded', - script: <<-eof - cd /data/build; php -a -d extension=modules/v8js.so - eof - -chain 'all', - commands: [ - { command: 'phpize' }, - { command: 'configure' }, - { command: 'clean' }, - { command: 'build' }, - { command: 'test' } - ] - -command 'coverage_report', - description: 'capture *.gcda files and generate code coverage report', - script: <<-eof - cd /data/build - lcov --base-directory=.libs --directory=.libs --directory ../v8js/ --no-external --capture --output-file gcov.info - genhtml --legend --output-directory ../v8js/coverage_report/ --title "V8Js Code Coverage" gcov.info - eof - -chain 'coverage', - commands: [ - { command: 'phpize' }, - { command: 'configure', argv: ['--cxxflags=-O0 --coverage', '--ldflags=--coverage'] }, - { command: 'clean' }, - { command: 'build' }, - { command: 'test' }, - { command: 'coverage_report' }, - ] diff --git a/Dockerfile.jenkins b/Dockerfile.jenkins deleted file mode 100644 index 1cf9fae..0000000 --- a/Dockerfile.jenkins +++ /dev/null @@ -1,22 +0,0 @@ -ARG V8VER -FROM stesie/libv8-${V8VER}:latest - -ARG PHPVER - -ENV DEBIAN_FRONTEND=noninteractive -ENV LC_ALL=C.UTF-8 -ENV NO_INTERACTION=1 -ENV REPORT_EXIT_STATUS=1 - -RUN apt-get update -q -RUN apt-get install -y wget autoconf build-essential libreadline-dev pkg-config - -RUN wget https://www.php.net/distributions/php-${PHPVER}.tar.gz && \ - tar xzf php-${PHPVER}.tar.gz -ADD . /php-${PHPVER}/ext/v8js -WORKDIR /php-${PHPVER} - -RUN ./buildconf --force -RUN ./configure --disable-all --with-readline --enable-cli --enable-json --enable-maintainer-zts --with-v8js=/opt/libv8-$V8VER/ CFLAGS="-fsanitize=address -g -O0" CXXFLAGS="-fsanitize=address -g -O0" CPPFLAGS="$([ $( echo "$V8VER" | cut -c 1-1 ) -ge 8 ] && echo "-DV8_COMPRESS_POINTERS" || echo "")" -RUN sed -e "s/^EXTRA_LIBS.*/& -lv8_libplatform -ldl/" -i Makefile -RUN make -j5 diff --git a/Dockerfile.travis b/Dockerfile.travis deleted file mode 100644 index 5ce3399..0000000 --- a/Dockerfile.travis +++ /dev/null @@ -1,22 +0,0 @@ -FROM ubuntu:xenial - -ENV DEBIAN_FRONTEND=noninteractive -ENV LC_ALL=C.UTF-8 -ENV NO_INTERACTION=1 -ENV REPORT_EXIT_STATUS=1 - -RUN apt-get update -q -RUN apt-get install -y software-properties-common - -RUN add-apt-repository ppa:ondrej/php -RUN add-apt-repository ppa:stesie/libv8 -y -RUN apt-get update -q - -RUN apt-get install -y php$PHPVER-dev libv8-$V8VER-dev - -ADD . /app -WORKDIR /app - -RUN phpize -RUN ./configure CXXFLAGS="-Wall -Wno-write-strings" LDFLAGS="-lstdc++" --with-v8js=/opt/libv8-$V8VER/ -RUN make -j4 diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index c90adce..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,34 +0,0 @@ -pipeline { - agent none - stages { - stage('BuildAndTest') { - matrix { - agent any - axes { - axis { - name 'PHPVER' - values '7.3.21', '7.4.9' - } - axis { - name 'V8VER' - values '7.9', '8.4', '8.6' - } - } - stages { - stage('Build') { - steps { - echo "Building w/ V8 ${V8VER}, PHP ${PHPVER} as Docker image ${BUILD_TAG}-${V8VER}-${PHPVER}" - sh "docker build -f Dockerfile.jenkins --build-arg V8VER=${V8VER} --build-arg PHPVER=${PHPVER} -t ${BUILD_TAG}-${V8VER}-${PHPVER} ." - } - } - stage('Test') { - steps { - echo "Running test on ${BUILD_TAG}-${V8VER}-${PHPVER}" - sh "docker run --rm -t ${BUILD_TAG}-${V8VER}-${PHPVER} make test TESTS='ext/v8js/tests/*.phpt'" - } - } - } - } - } - } -} diff --git a/Makefile.travis b/Makefile.travis deleted file mode 100644 index 74cfd27..0000000 --- a/Makefile.travis +++ /dev/null @@ -1,16 +0,0 @@ -# Configure and build scripts for travis CI system -V8VER ?= 7.5 - -IMAGENAME ?= v8js-test - -export NO_INTERACTION=1 -export REPORT_EXIT_STATUS=1 - -build: - envsubst < Dockerfile.travis > Dockerfile.tmp - docker build -t $(IMAGENAME) -f Dockerfile.tmp . - -test: build - docker run --rm -t $(IMAGENAME) make test - -.PHONY: build test diff --git a/README.md b/README.md index d4bb862..8303630 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ V8Js ==== -[![Build Status](https://travis-ci.org/phpv8/v8js.svg?branch=php7)](https://travis-ci.org/phpv8/v8js) -[![Test building extension](https://github.com/JoshuaBehrens/v8js/actions/workflows/build-test.yml/badge.svg)](https://github.com/JoshuaBehrens/v8js/actions/workflows/build-test.yml) +[![Test building extension](https://github.com/phpv8/v8js/actions/workflows/build-test.yml/badge.svg)](https://github.com/phpv8/v8js/actions/workflows/build-test.yml) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/phpv8/v8js/master/LICENSE) [![Join the chat at https://gitter.im/phpv8/v8js](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/phpv8/v8js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) diff --git a/Vagrantfile b/Vagrantfile deleted file mode 100644 index 640d485..0000000 --- a/Vagrantfile +++ /dev/null @@ -1,107 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby ts=2 sts=2 sw=2 et : - -# All Vagrant configuration is done below. The "2" in Vagrant.configure -# configures the configuration version (we support older styles for -# backwards compatibility). Please don't change it unless you know what -# you're doing. -Vagrant.configure("2") do |config| - # Every Vagrant development environment requires a box. You can search for - # boxes at https://atlas.hashicorp.com/search. - config.vm.box = "ubuntu/bionic64" - - - # - # mass-define "generic" Ubuntu boxes - # - %w{7.5}.each { |version| - config.vm.define "v8-#{version}" do |i| - i.vm.synced_folder ".", "/data/v8js" - - i.vm.provision "shell", inline: <<-SHELL - gpg --keyserver keys.gnupg.net --recv 7F438280EF8D349F - gpg --armor --export 7F438280EF8D349F | apt-key add - - - apt-get update - apt-get install -y software-properties-common gdb tmux git tig curl apache2-utils lcov - - add-apt-repository ppa:ondrej/php - add-apt-repository ppa:stesie/libv8 - apt-get update - apt-get install -y php7.1-dev libv8-#{version}-dbg libv8-#{version}-dev - SHELL - end - } - - %w{}.each { |version| - config.vm.define "v8-#{version}" do |i| - i.vm.synced_folder ".", "/data/v8js" - - i.vm.provision "shell", inline: <<-SHELL - gpg --keyserver keys.gnupg.net --recv 7F438280EF8D349F - gpg --armor --export 7F438280EF8D349F | apt-key add - - - apt-get update - apt-get install -y software-properties-common gdb tmux git tig curl apache2-utils lcov build-essential python libglib2.0-dev - - add-apt-repository ppa:ondrej/php - apt-get update - apt-get install -y php7.1-dev - - mkdir -p /data - cd /data - - # Install depot_tools first (needed for source checkout) - git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git - export PATH=`pwd`/depot_tools:"$PATH" - - # Download v8 - fetch v8 - cd v8 - - # checkout version - git checkout #{version} - gclient sync - - # Setup GN - tools/dev/v8gen.py -vv x64.release -- is_component_build=true - - # Build - ninja -C out.gn/x64.release/ - - # Install to /opt/libv8-#{version}/ - sudo mkdir -p /opt/libv8-#{version}/{lib,include} - sudo cp out.gn/x64.release/lib*.so out.gn/x64.release/*_blob.bin out.gn/x64.release/icudtl.dat /opt/libv8-#{version}/lib/ - sudo cp -R include/* /opt/libv8-#{version}/include/ - SHELL - end - } - - config.vm.define "php-7.4" do |i| - i.vm.synced_folder ".", "/data/v8js" - - i.vm.provision "shell", inline: <<-SHELL - gpg --keyserver keys.gnupg.net --recv 7F438280EF8D349F - gpg --armor --export 7F438280EF8D349F | apt-key add - - - apt-get update - apt-get install -y software-properties-common gdb tmux git tig curl apache2-utils lcov - - add-apt-repository ppa:stesie/libv8 - apt-get update - apt-get install -y libv8-7.5-dbg libv8-7.5-dev - - test -x /tmp/php-src || git clone https://github.com/php/php-src.git /tmp/php-src -b PHP-7.4 --depth 1 - cd /tmp/php-src - apt-get install -y build-essential bison re2c libreadline-dev - ./buildconf - ./configure --disable-all --with-readline - make -j4 - make install - SHELL - end - - config.vm.provision "shell", privileged: false, inline: <<-SHELL - sudo mkdir -p /data/build && sudo chown $USER:$USER /data/build - SHELL -end