1 Star 0 Fork 75

再贱Goodbye / Notadd

forked from Notadd / Notadd 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
寻风 提交于 2017-11-26 21:46 . switch master
sudo: false
language: php
env:
global:
- archive=no
- DB=mysql
matrix:
fast_finish: true
include:
- php: 7.0
- php: 7.0
env: DB=postgres
- php: 7.1
- php: 7.1
env:
- archive=yes
- DB=postgres
- php: 7.2
- php: 7.2
env: DB=postgres
services:
- postgresql
- mysql
cache:
directories:
- $HOME/.composer/cache
before_install:
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database notadd;' -U postgres; echo "$DB"; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE IF NOT EXISTS notadd;'; echo "$DB"; fi"
install:
- composer clearcache
- composer install
- php notadd jwt:generate
- sh -c "if [ '$archive' = 'yes' ]; then tar -cvf notadd.tar --exclude=.git ../notadd; fi"
- sh -c "if [ '$archive' = 'yes' ]; then xz -z9 notadd.tar; fi"
- sh -c "if [ '$DB' = 'postgres' ]; then php notadd integration:configuration --driver=pgsql --host=127.0.0.1 --port=5432 --database=notadd --username=postgres --password=postgres --prefix=pre_; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then php notadd integration:configuration --driver=mysql --host=127.0.0.1 --port=3306 --database=notadd --username=root --prefix=pre_; fi"
- php notadd integration
script:
- vendor/bin/phpunit --verbose
after_success:
- sh -c "if [ '$archive' = 'yes' ]; then curl -T notadd.tar.xz http://v0.api.upyun.com/notadd/download/notadd-master.tar.xz -u "$UPYUN" -v; fi"
- bash <(curl -s https://codecov.io/bash) -t "$CODACY_PROJECT_TOKEN"
notifications:
webhooks:
- https://hook.bearychat.com/=bwA22/travis/52fa443470377f35e5a3d068b8d2d5ca
- https://hook.bearychat.com/=bwA7K/travis/3c04d191a6066d3e178ab8d93643e708
PHP
1
https://gitee.com/say_goodbye_magic/notadd.git
git@gitee.com:say_goodbye_magic/notadd.git
say_goodbye_magic
notadd
Notadd
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891