代码拉取完成,页面将自动刷新
language: php
env:
global:
- DB=mysql
matrix:
include:
- php: 5.3
dist: precise
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: nightly
fast_finish: true
allow_failures:
- php: nightly
- php: 7.2
before_script:
- which phpunit
- phpunit --version
- mysql --version
- git clone git://github.com/YOURLS/YOURLS-unit-tests.git tests
- |
# Use same branch in YOURLS and YOURLS-unit-tests
export CURRENT_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
echo "Current YOURLS branch: $CURRENT_BRANCH"
cd tests
if [ `git checkout $CURRENT_BRANCH &> /dev/null; echo $?` == 0 ]
then
echo "Using branch $CURRENT_BRANCH for Tests as well"
else
echo "Using branch master for Tests"
fi
cd ..
- git clone git://github.com/ozh/YOURLS-fr_FR.git user/languages/fr
- cp user/languages/fr/fr_FR.* user/languages
- mysql -e 'create database IF NOT EXISTS yourls_tests;'
- cp tests/yourls-tests-config-travis.php user/config.php
script: phpunit --configuration ./tests/phpunit-travis.xml.dist
notifications:
email: false
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。