Naive implementation of Map and Set
[php-functional.git] / .travis.yml
1 language: php
2
3 dist: trusty
4
5 php:
6 - 7.1
7 - 7.2
8
9 matrix:
10 include:
11 - php: 7.1
12 env: COVERAGE=yes
13
14 cache:
15 directories:
16 - $HOME/.composer/cache
17
18 before_script:
19 - composer self-update
20 - if [[ $COVERAGE == yes ]]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; fi
21 - if [[ $COVERAGE == yes ]]; then chmod +x ./cc-test-reporter; fi
22 - if [[ $COVERAGE == yes ]]; then ./cc-test-reporter before-build; fi
23
24 install:
25 - composer install --prefer-source
26
27 script:
28 - if [[ $COVERAGE != yes ]]; then composer test; fi
29 - if [[ $COVERAGE == yes ]]; then composer testc; fi
30 - if [[ $COVERAGE == yes ]]; then composer check-code; fi
31
32 after_script:
33 - if [[ $COVERAGE == yes ]]; then ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT; fi
34
35 notifications:
36 email: false