Translated using Weblate (Slovenian)
[phpmyadmin.git] / .travis.yml
blob0fefa218c05a0f73b7ee57dcceecb5948821d4e3
1 # The Travis setup:
2 # - run testsuite for every PHP version
3 # - run lint for every PHP version
4 # - run Selenium for single PHP version
6 language: php
8 php:
9   - "7.0"
10   - "5.6"
11   - "5.5"
12   - hhvm
14 sudo: false
16 env:
17   matrix:
18     - PHPUNIT_ARGS="--exclude-group selenium"
19   global:
20     - TESTSUITE_USER=root
21     - TESTSUITE_PASSWORD=root
22     - TESTSUITE_URL=http://127.0.0.1:8000
24 install:
25   - pip install --user codecov
26   - ./test/install-runkit
27   - ./test/install-browserstack
28   - composer install --dev --no-interaction
30 before_script:
31   - if [ $TRAVIS_PHP_VERSION != "hhvm" ] ; then phpenv config-add test/php-noprofile.ini ; fi
32   - export PATH=~/.composer/vendor/bin/:$PATH
33   - mysql -uroot -e "CREATE DATABASE test"
34   - mysql -uroot < sql/create_tables.sql
35   - mysql -uroot -e "SET PASSWORD = PASSWORD('$TESTSUITE_PASSWORD')"
36   - ./test/start-local-server
38 script:
39   - ant clean
40   - ant locales
41   - ant lint
42   - set -e;
43     if [ $TRAVIS_PHP_VERSION == "hhvm" ] ; then
44     ant phpunit-hhvm ;
45     else
46     if [ ! -z "$SELENIUM" ] ; then
47     ant phpunit-nocoverage ;
48     else
49     ant phpunit ;
50     fi ;
51     fi
53 after_script:
54   - if [ -f vendor/bin/coveralls ] ; then php vendor/bin/coveralls -v || true ; fi
55   - if [ -f vendor/bin/codacycoverage ] ; then php vendor/bin/codacycoverage clover || true ; fi
56   - codecov
57   - if [ -f php.log ] ; then cat php.log ; fi
59 matrix:
60   allow_failures:
61     - php: 5.6
62       env: PHPUNIT_ARGS="--group selenium" SELENIUM="yes"
63   fast_finish: true
64   include:
65     - php: 5.6
66       env: PHPUNIT_ARGS="--group selenium" SELENIUM="yes"
67 cache:
68   directories:
69     - $HOME/.composer/cache/
70     - $HOME/browserstack
71     - $HOME/runkit
72 # trigger Buildtime Trend Service to parse Travis CI log
73 notifications:
74   webhooks:
75     - https://buildtimetrend.herokuapp.com/travis