-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (26 loc) · 877 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
language: php
matrix:
fast_finish: true
php:
- 5.6
- 7.1
cache:
directories:
- "$HOME/.composer/cache"
- vendor
before_script:
- openssl aes-256-cbc -K $encrypted_7087153e75f1_key -iv $encrypted_7087153e75f1_iv -in ./tests/data/id_rsa.enc -out ~/.ssh/id_rsa -d
- eval $(ssh-agent -s)
- chmod 0600 ~/.ssh/id_rsa
- ssh-add ~/.ssh/id_rsa
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- composer self-update
- composer config repositories.metronic vcs [email protected]:zacksleo/metronic.git
- composer require zacksleo/metronic --prefer-dist
- composer install --prefer-dist --no-interaction
script:
- "./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover"
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover