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