1 Star 0 Fork 0

Evan/notifications

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 2.30 KB
一键复制 编辑 原始数据 按行查看 历史
Joas Schilling 提交于 2017-04-21 14:41 . Test the app against oracle
dist: trusty
sudo: required
language: php
php:
- 5.6
- 7.0
- 7.1
services:
- docker
addons:
apt:
packages:
- alien
- libaio1
cache:
directories:
- docker
apt: true
env:
global:
- CORE_BRANCH=master
- APP_NAME=notifications
matrix:
- DB=sqlite
branches:
only:
- master
- /^stable\d+(\.\d+)?$/
before_install:
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
- . ./before_install.sh $APP_NAME $CORE_BRANCH $DB
# Add some output debugging information
- cd ../server
- ./occ check
- ./occ status
- ./occ app:list
- ./occ app:enable $APP_NAME
- ./occ app:list
# Setup behat for integration tests
- cd apps/$APP_NAME/
- cd tests/Integration/
- sh -c "if [ '$INTEGRATION' = '1' ]; then composer install; fi"
- cd ../../
script:
# Test the app
- sh -c "if [ '$CODECHECK' = '1' ]; then find . -name \*.php -exec php -l \"{}\" \;; fi"
- cd ../../
- sh -c "if [ '$CODECHECK' = '1' ]; then ./occ app:check-code $APP_NAME -c private -c strong-comparison; fi"
- sh -c "if [ '$CODECHECK' = '2' ]; then ./occ app:check-code $APP_NAME -c deprecation; fi"
- cd apps/$APP_NAME/
# Run phpunit tests
- cd tests/Unit
- sh -c "if [ '$INTEGRATION' != '1' -a '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then phpunit --configuration phpunit.xml; fi"
- cd ../..
# Integration tests
- cd tests/Integration
- sh -c "if [ '$INTEGRATION' = '1' ]; then bash run.sh; fi"
- cd ../..
# Create coverage report
- cd tests/Unit
- sh -c "if [ '$INTEGRATION' != '1' -a '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' -a '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- sh -c "if [ '$INTEGRATION' != '1' -a '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' -a '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"
- cd ../..
matrix:
include:
- php: 7.0
env: DB=mysql
- php: 7.0
env: DB=pgsql
- php: 7.0
env: DB=oracle
- php: 7.0
env: DB=mysql;CODECHECK=1
- php: 7.0
env: DB=mysql;CODECHECK=2
- php: 7.0
env: DB=mysql;INTEGRATION=1
allow_failures:
- env: DB=mysql;CODECHECK=2
fast_finish: true
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/creno/notifications.git
[email protected]:creno/notifications.git
creno
notifications
notifications
master

搜索帮助