Translated using Weblate (Slovenian)
[phpmyadmin.git] / .travis.yml
blob12b258bdd5cae9171e70015d847b5dfd0b94a763
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     - CI_MODE=test
19     - CI_MODE=lint
20   global:
21     - TESTSUITE_USER=root
22     - TESTSUITE_PASSWORD=root
23     - TESTSUITE_URL=http://127.0.0.1:8000
25 install:
26   - ./test/ci-install-$CI_MODE
27   - if [ $TRAVIS_PHP_VERSION != "hhvm" ] ; then phpenv config-add test/php-noprofile.ini ; fi
29 before_script:
30   - export PATH=~/.composer/vendor/bin/:$PATH
31   - mysql -uroot -e "CREATE DATABASE test"
32   - mysql -uroot < sql/create_tables.sql
33   - mysql -uroot -e "SET PASSWORD = PASSWORD('$TESTSUITE_PASSWORD')"
34   - ./test/start-local-server
36 script:
37   - ant clean
38   - ./test/ci-$CI_MODE
40 after_script:
41   - if [ -f vendor/bin/coveralls ] ; then php vendor/bin/coveralls -v || true ; fi
42   - if [ -f vendor/bin/codacycoverage ] ; then php vendor/bin/codacycoverage clover || true ; fi
43   - if [ -f ~/.local/bin/codecov ] ; then ~/.local/bin/codecov ; fi
44   - if [ -f php.log ] ; then cat php.log ; fi
46 matrix:
47   allow_failures:
48     - php: "7.0"
49       env: CI_MODE=selenium
50   fast_finish: true
51   include:
52     - php: "7.0"
53       env: CI_MODE=selenium
54     - php: "7.0"
55       env: CI_MODE=release
56 cache:
57   directories:
58     - $HOME/.composer/cache/
59     - $HOME/browserstack
60     - $HOME/runkit
61     - $HOME/.cache/pip
62 # trigger Buildtime Trend Service to parse Travis CI log
63 notifications:
64   webhooks:
65     - https://buildtimetrend.herokuapp.com/travis
66 addons:
67   apt:
68     packages:
69     - git
70     - python-coverage
71     sources:
72     - git-core