mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
disable travis
This commit is contained in:
parent
4d448530c6
commit
ef7fe37e9a
2 changed files with 0 additions and 48 deletions
46
.travis.yml
46
.travis.yml
|
|
@ -1,46 +0,0 @@
|
|||
dist: trusty
|
||||
sudo: false
|
||||
language: php
|
||||
php:
|
||||
- '7.3'
|
||||
|
||||
addons:
|
||||
postgresql: "11"
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.composer/cache/files
|
||||
|
||||
env:
|
||||
global:
|
||||
- DB_TYPE=pgsql
|
||||
- DB_HOST=localhost
|
||||
- DB_USERNAME=postgres
|
||||
- DB_PASSWORD=
|
||||
- DB_PORT=5432
|
||||
- DB_DATABASE=travis_ci_test
|
||||
- BASE_HOST=example.com
|
||||
- DEMO_ROOT=/tmp/demos
|
||||
|
||||
install:
|
||||
- pecl install ast
|
||||
- composer install --no-interaction
|
||||
- npm install
|
||||
|
||||
before_script:
|
||||
- phpenv config-add travis.php.ini
|
||||
- psql -c 'create database travis_ci_test;' -U postgres
|
||||
- wget https://raw.githubusercontent.com/demostf/db/master/schema.sql
|
||||
- psql -U postgres -d travis_ci_test -f schema.sql
|
||||
- echo "error_reporting = E_ALL & ~E_DEPRECATED" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini #random-lib complains about mcrypt
|
||||
|
||||
script:
|
||||
- vendor/bin/phpunit --coverage-clover coverage.xml --configuration test/phpunit.xml
|
||||
- IFS=$'\n'; COMMIT_SCA_FILES=($(git diff --name-only --diff-filter=ACMRTUXB "${$TRAVIS_COMMIT_RANGE}")); unset IFS
|
||||
- vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run --allow-risky yes --stop-on-violation --using-cache=no --path-mode=intersection -- "${COMMIT_SCA_FILES[@]}"
|
||||
- phpenv config-rm xdebug.ini
|
||||
- vendor/bin/phan
|
||||
- node node_modules/.bin/mocha --recursive
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
post_max_size = 100M
|
||||
upload_max_filesize = 100M
|
||||
Loading…
Add table
Add a link
Reference in a new issue