-
Notifications
You must be signed in to change notification settings - Fork 57
/
.travis.yml
49 lines (39 loc) · 1.15 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: php
php:
- 5.4
- 5.5
- 5.6
- hhvm
sudo: false
services:
- memcached
before_install:
- composer self-update
before_script:
- composer update --prefer-lowest
- composer --optimize-autoloader
- mkdir -p ./build/logs
script:
- phpunit -c tests/phpunit.xml --coverage-clover ./build/logs/clover.xml
after_script:
- php vendor/bin/coveralls
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --access-token=$SCRUTINIZERKEY --format=php-clover ./build/logs/clover.xml > /dev/null 2>&1
after_success:
# CREATE GIT TAG
- git config --global user.email "[email protected]"
- git config --global user.name "Travis"
- export GIT_TAG=build-$TRAVIS_BRANCH-$(date -u "+%Y-%m-%d")-$TRAVIS_BUILD_NUMBER
- echo -n $GIT_TAG > public/version
- git commit -m "Set build VERSION number" public/version
- git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
- git push --tags --quiet https://[email protected]/clickalicious/phpMemAdmin > /dev/null 2>&1
# whitelist
branches:
only:
- master
- stable
matrix:
fast_finish: true
allow_failures:
- php: hhvm