forked from jaggedsoft/php-binance-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (47 loc) · 1.87 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
50
51
52
53
54
language: php
php:
- 7.0
- 7.1
- 7.2
- nightly
before_script:
- mkdir -vp ~/.config/jaggedsoft/
- mkdir -vp build/logs
- travis_retry wget https://raw.githubusercontent.com/jaggedsoft/php-binance-api/gh-travis/composer-test.json -O composer-test.json
- travis_retry wget https://raw.githubusercontent.com/jaggedsoft/php-binance-api/gh-travis/docs.sh -O docs.sh
- travis_retry wget https://raw.githubusercontent.com/jaggedsoft/php-binance-api/gh-travis/doxy.gen -O doxy.gen
- travis_retry wget https://raw.githubusercontent.com/jaggedsoft/php-binance-api/gh-travis/php-binance-api-test.php -O php-binance-api-test.php
- travis_retry wget https://raw.githubusercontent.com/jaggedsoft/php-binance-api/gh-travis/phpunit.xml -O phpunit.xml
- travis_retry wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar -O coveralls.phar
- travis_retry wget https://codecov.io/bash -O codecov.sh
- COMPOSER=composer-test.json composer -vvv install --no-interaction --no-suggest
- chmod -v +x codecov.sh
- chmod -v +x docs.sh
- chmod -v +x coveralls.phar
script:
- ./vendor/bin/phpunit --verbose --debug --coverage-clover build/logs/clover.xml --bootstrap vendor/autoload.php php-binance-api-test
after_success:
- travis_retry php coveralls.phar -v
- travis_retry bash -x ./codecov.sh -f "!$TRAVIS_BUILD_DIR/php-binance-api-test.php"
- travis_retry bash -x ./docs.sh
branches:
only: master
env:
global:
- GH_REPO_NAME: php-binance-api
- DOXYFILE: $TRAVIS_BUILD_DIR/doxy.gen
- GH_REPO_REF: github.com/jaggedsoft/php-binance-api.git
- DOXY_FILES: $TRAVIS_BUILD_DIR/php-binance-api.php
- DOXY_FILES_EXCLUDE: $TRAVIS_BUILD_DIR/examples/*
addons:
apt:
packages:
- doxygen
- doxygen-doc
- doxygen-latex
- doxygen-gui
- graphviz
cache:
directories:
- vendor
- $HOME/.cache/composer