mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-15 04:46:49 +01:00
* [FIX] Fixed Travis CI file structure?
Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
32
.travis.yml
32
.travis.yml
@@ -3,9 +3,9 @@ language: php
|
||||
sudo: false
|
||||
|
||||
php:
|
||||
- '7.0'
|
||||
- '7.1'
|
||||
- '7.2'
|
||||
- '7.0'
|
||||
- '7.1'
|
||||
- '7.2'
|
||||
|
||||
branches:
|
||||
only:
|
||||
@@ -15,28 +15,30 @@ addons:
|
||||
mariadb: '10.1'
|
||||
|
||||
before_script:
|
||||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
||||
- chmod +x ./cc-test-reporter && ./cc-test-reporter before-build
|
||||
- composer self-update
|
||||
- composer install --prefer-source --no-interaction --dev
|
||||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
||||
- chmod +x ./cc-test-reporter && ./cc-test-reporter before-build
|
||||
- composer self-update
|
||||
- composer install --prefer-source --no-interaction --dev
|
||||
|
||||
script: ./vendor/bin/phpunit -c ./tests/phpunit.xml --testsuite Core
|
||||
|
||||
after_script:
|
||||
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then mv ./tests/_output/coverage-clover.xml clover.xml && ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -t clover; fi
|
||||
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then mv ./tests/_output/coverage-clover.xml clover.xml && ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -t clover; fi
|
||||
|
||||
notifications:
|
||||
email: nuxsmin@syspass.org
|
||||
on_success: never
|
||||
on_failure: always
|
||||
email:
|
||||
recipients:
|
||||
- nuxsmin@syspass.org
|
||||
on_success: never # default: change
|
||||
on_failure: always # default: always
|
||||
|
||||
env:
|
||||
- DB_SERVER=127.0.0.1 DB_NAME=syspass DB_USER=root DB_PASS=
|
||||
- DB_SERVER=127.0.0.1 DB_NAME=syspass DB_USER=root DB_PASS=
|
||||
|
||||
before_install:
|
||||
- mysql -e 'DROP DATABASE IF EXISTS `'"$DB_NAME"'`;'
|
||||
- mysql -e 'CREATE DATABASE `'"$DB_NAME"'` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;'
|
||||
- mysql $DB_NAME < ./schemas/dbstructure.sql
|
||||
- mysql -e 'DROP DATABASE IF EXISTS `'"$DB_NAME"'`;'
|
||||
- mysql -e 'CREATE DATABASE `'"$DB_NAME"'` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;'
|
||||
- mysql $DB_NAME < ./schemas/dbstructure.sql
|
||||
|
||||
cache:
|
||||
directories:
|
||||
|
||||
Reference in New Issue
Block a user