代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/Kiwi-TCMS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
dist: xenial
sudo: required
language: python
python:
- "3.6"
cache: pip
env:
global:
- CC_TEST_REPORTER_ID=95caa6c770dbc4ca15944ed22c5fa840e1cc61627d199d11eedbf08e6a0482ee
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "AFMd4dRA1psBKd1LohQMxwL9vmAUvPrMzvBiU4w6mRX87Sskz69sLXAXivYvl/Eli+vzqIQat0VFOuymC4ScKhON1rbSJ5F/DQElToAPPNT2GXIaMCRA+ILOX28wFvC6/wqpvYuIf4yN19t2rSkNy0AqTH1RhPNkCHyiMcs0V6ztmlxobn1F9TYPCO8i1B+ZFez7rnUeQVaoXW3Cv4X8rjbkBd9iQQF/wfn8k71LeY2KB0fCxmjzFDQwXLnldka4lLWRuTPBcdKf57MveorMSJ5afLr/wd4IXKdoM3oUa6Us73T1+OvC3cOVlG7z49bP5VVz0xMq6qcmnQEOxMhO8wUNtkMssBz89BwC39LKMOxcASFF8F5joTWCfN+s2k2bsV/lNuKCspOEji+KTdSnMFMlo3LxQ8rt1cMNOrHvnmYJjteQ00IXrXhxdFeGGOrko0qQU1iPW4FjRsHOeNqdMMDKKvTO27odgJbNYF7lo3nWgPXVGqteMhpvxnoS2JR9ettGZJQueDrAzSmCe9Akc0hGwvyUTsyjaYLIAdxmaqKZtu1G+Otep11Rjf0gXaNLSZ/Pm02BHrOdLqTsRuTihHuR/W2HHuJrw44u2nF/3oer+bfAAGpdK0e6NqaZgmLSEN340FDcJ9sG6oGMo6cYGQWqzNUf3/gS4K7TvWhw10M="
services:
- mysql
- postgresql
addons:
apt:
sources:
- sourceline: 'deb http://archive.ubuntu.com/ubuntu/ artful main restricted'
- sourceline: 'deb http://archive.ubuntu.com/ubuntu/ artful-updates main restricted'
packages:
# update sqlite3 to get rid of segmentation faults with Django 2.0, for example:
# https://travis-ci.org/kiwitcms/Kiwi/jobs/322848116
# all sources I've read point to possible issues with sqlite itself
- sqlite3
jobs:
include:
- if: branch = master AND type = push
env:
- CMD=coverity
addons:
coverity_scan:
project:
name: "kiwitcms/Kiwi"
description: "Open source test case management system"
notification_email: info@kiwitcms.org
build_command: "--no-command --fs-capture-search ./ --fs-capture-search $(python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')"
branch_pattern: master
- if: branch = master AND type = push
env:
- CMD=test
- TEST_DB=MySQL
before_install:
- echo -n | openssl s_client -connect https://scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
- |
if [ "$TEST_DB" == "MySQL" ]; then
cat "$TRAVIS_BUILD_DIR/99-charset.cnf" | sudo tee -a /etc/mysql/conf.d/mariadb.cnf
sudo cat /etc/mysql/conf.d/mariadb.cnf
sudo service mysql restart
mysql -e 'SELECT VERSION();'
mysql -e 'CREATE USER "kiwi" IDENTIFIED BY "kiwi";'
mysql -e 'CREATE DATABASE kiwi CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'
mysql -e 'GRANT ALL PRIVILEGES ON kiwi.* TO kiwi;'
mysql -e 'CREATE DATABASE test_kiwi CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'
mysql -e 'GRANT ALL PRIVILEGES ON test_kiwi.* TO kiwi;'
fi
install:
- |
[ -z "$TEST_DB" ] && export TEST_DB="SQLite"
export REQUIREMENTS_TXT="requirements/$(echo $TEST_DB | tr '[:upper:]' '[:lower:]' | sed 's/mysql/mariadb/' | sed 's/sqlite/base/').txt"
echo "REQUIREMENTS_TXT=$REQUIREMENTS_TXT"
pip install -r $REQUIREMENTS_TXT
pip install -r requirements/devel.txt
pushd tcms/ && npm install && popd
script: make $CMD
after_success:
- |
bash <(curl -s https://codecov.io/bash)
if [ "$TEST_DB" == "MariaDB" ]; then
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
fi
notifications:
email:
on_failure: change
on_success: never
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。