代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/Molten 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
language: c
env:
- MO_PHP_VERSION=7.2.2
- MO_PHP_VERSION=7.1.2
- MO_PHP_VERSION=7.0.16
- MO_PHP_VERSION=5.6.30
- MO_PHP_VERSION=5.5.38
- MO_PHP_VERSION=5.4.37
services:
- mysql
- redis-server
- mongodb
- memcached
- elasticsearch
cache:
directories:
- php_source
- php_build
before_install:
# install software
- sudo apt-get install netcat-traditional
- printf "2\n"| sudo update-alternatives --config nc
- sudo apt-get install libmemcached-tools
# restart redis
- sudo redis-server /etc/redis/redis.conf --port 6380
# set mysql table
- mysql -e 'CREATE DATABASE IF NOT EXISTS molten;' -u root
- mysql -e 'CREATE TABLE molten.configs (
`key` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL,
`value` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`key`)
) ENGINE=InnoDB;' -u root
- mysql -e 'insert into molten.configs(`key`, `value`) values(1, 2)' -u root
- MO_PHP_SRC=${TRAVIS_BUILD_DIR}/php_source/php-${MO_PHP_VERSION}
- MO_PHP_PATH=${TRAVIS_BUILD_DIR}/php_build/php-${MO_PHP_VERSION}
- MO_PHP_BIN=${MO_PHP_PATH}/bin/php
- MO_PHP_PECL=${MO_PHP_PATH}/bin/pecl
- MO_PHP_TEST=${TRAVIS_BUILD_DIR}/tests
- MO_EXTENSION_NEW=level
# build PHP without ZTS by ourselves...
- mkdir -p php_source php_build
- (cd php_source && ls -l php-${MO_PHP_VERSION}.tar.bz2 || ../.travis/php_get.sh ${MO_PHP_VERSION})
- (cd php_source && ls -l ${MO_PHP_BIN} || ../.travis/php_build.sh ${TRAVIS_BUILD_DIR}/php_build php-${MO_PHP_VERSION}.tar.bz2)
# install composer install vendor
- (.travis/composer_install.sh $MO_PHP_VERSION $MO_PHP_TEST)
- (cd tests && curl -s http://getcomposer.org/installer|$MO_PHP_BIN && $MO_PHP_BIN composer.phar install)
# install extension
- (sh .travis/ext_install.sh $MO_PHP_PATH $MO_PHP_VERSION)
before_script:
- sleep 10
# build a new extension for level id test
#- .travis/ext_build.sh ${MO_PHP_PATH} $MO_EXTENSION_NEW
# build normal extension
- .travis/ext_build.sh ${MO_PHP_PATH}
script:
- (REPORT_EXIT_STATUS=1 TEST_PHP_EXECUTABLE=${MO_PHP_BIN} ${MO_PHP_BIN} -n run-tests.php -q -n -d extension=molten.so -d extension=redis.so -d extension=mongodb.so -d extension=memcached.so --show-diff)
#- (REPORT_EXIT_STATUS=1 TEST_PHP_EXECUTABLE=${MO_PHP_BIN} ${MO_PHP_BIN} -n run-tests.php -q -n -d extension=${MO_EXTENSION_NEW}.so -d extension=redis.so -d extension=mongodb.so -d extension=memcached.so --show-diff)
after_script:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。