Translated using Weblate (Slovenian)
[phpmyadmin.git] / .travis.yml
blobfa6c36ab484e156bc61aea73c04c6ae1f17d6b09
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 services:
9   - mysql
11 php:
12   - "7.1"
13   - "7.0"
14   - "5.6"
15   - "5.5"
16   - hhvm
18 sudo: false
20 env:
21   matrix:
22     - CI_MODE=test
23     - CI_MODE=lint
24   global:
25     - TESTSUITE_USER=root
26     - TESTSUITE_PASSWORD=root
27     - TESTSUITE_URL=http://127.0.0.1:8000
29 install:
30   - ./test/ci-install-$CI_MODE
31   - if [ $TRAVIS_PHP_VERSION != "hhvm" ] ; then phpenv config-add test/php-noprofile.ini ; fi
33 before_script:
34   - export PATH=~/.composer/vendor/bin/:$PATH
35   - mysql -uroot -e "CREATE DATABASE IF NOT EXISTS test"
36   - mysql -uroot < sql/create_tables.sql
37   - mysql -uroot -e "SET PASSWORD = PASSWORD('$TESTSUITE_PASSWORD')"
38   - ./test/start-local-server
40 script:
41   - ant clean
42   - ./test/ci-$CI_MODE
44 after_script:
45   - if [ -f vendor/bin/coveralls ] ; then php vendor/bin/coveralls -v || true ; fi
46   - if [ -f vendor/bin/codacycoverage ] ; then php vendor/bin/codacycoverage clover || true ; fi
47   - if [ -f php.log ] ; then cat php.log ; fi
49 after_success:
50   - bash <(curl -s https://codecov.io/bash)
52 matrix:
53   allow_failures:
54     - php: "7.0"
55       env: CI_MODE=selenium
56   fast_finish: true
57   include:
58     - php: "7.0"
59       env: CI_MODE=selenium
60     - php: "7.0"
61       env: CI_MODE=release
62     - php: "7.0"
63       env: CI_MODE=docs
64     - os: osx
65       language: generic
66       env: CI_MODE=test
67       before_install:
68         - brew tap homebrew/php
69         - brew update
70         - brew install ant gettext php70 mariadb
71         - brew link --force gettext
72         - curl https://getcomposer.org/installer | php
73         - ln -s "`pwd`/composer.phar" /usr/local/bin/composer
74         - mysql.server start
76 cache:
77   directories:
78     - $HOME/.composer/cache/
79     - $HOME/browserstack
80     - $HOME/runkit
81     - $HOME/.cache/pip
82 # trigger Buildtime Trend Service to parse Travis CI log
83 notifications:
84   webhooks:
85     - https://buildtimetrend.herokuapp.com/travis
86 addons:
87   apt:
88     packages:
89     - git
90     - python-coverage
91     sources:
92     - git-core