-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
executable file
·34 lines (28 loc) · 1003 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: php
php:
- 5.6
env:
- OXID_VERSION="v4.10.4"
- OXID_VERSION="v4.9.9"
- OXID_VERSION="v4.8.12"
- OXID_VERSION="v4.7.14"
before_script:
- mkdir -p build/logs
- curl -s https://getcomposer.org/installer | php
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then php composer.phar config -g github-oauth.github.com "${GITHUB_TOKEN}"; fi'
- php composer.phar install
- mysql -e 'CREATE DATABASE IF NOT EXISTS `oxid`;'
- bin/oxrun install:shop --oxidVersion="${OXID_VERSION}" --dbUser=root --installationFolder=../ --shopURL=http://local.oxrun --adminUser=admin@local.oxrun --adminPassword=oxrunpassword
- chmod 777 ../config.inc.php
script:
- vendor/bin/phpunit --debug --stop-on-error --stop-on-failure
after_success:
- if [[ $TRAVIS_TAG != '' ]]; then php -d phar.readonly=0 build-phar -v"${TRAVIS_TAG}"; fi
- travis_retry php vendor/bin/coveralls -v
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: oxrun.phar
skip_cleanup: true
on:
tags: true