Translated using Weblate (Indonesian)
[phpmyadmin.git] / .travis.yml
blobe23989311d7387b52ea605b6aa4ee68140b7fba2
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 dist: trusty
8 language: php
10 services:
11   - mysql
13 php:
14   - "7.2"
15   - "7.1"
16   - "7.0"
17   - "5.6"
18   - "5.5"
19   - "hhvm-3.12"
20   - "hhvm-3.18"
22 sudo: required
24 env:
25   matrix:
26     - CI_MODE=test
27   global:
28     - TESTSUITE_USER=root
29     - TESTSUITE_PASSWORD=root
30     - TESTSUITE_URL=http://127.0.0.1:8000
32 install:
33   - ./test/ci-install-$CI_MODE
34   - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then case "$TRAVIS_PHP_VERSION" in hhvm*) ;; *) phpenv config-add test/php-noprofile.ini ;; esac ; fi
36 before_script:
37   - export PATH=~/.composer/vendor/bin/:$PATH
38   - mysql -uroot -e "CREATE DATABASE IF NOT EXISTS test"
39   - mysql -uroot < sql/create_tables.sql
40   - mysql -uroot -e "SET PASSWORD = PASSWORD('$TESTSUITE_PASSWORD')"
41   - ./test/start-local-server
43 script:
44   - ./scripts/generate-mo --quiet
45   - if [ $CI_MODE = test ] ; then ./test/ci-lint ; fi
46   - ./test/ci-$CI_MODE
48 after_script:
49   - if [ -f vendor/bin/codacycoverage ] ; then php vendor/bin/codacycoverage clover || true ; fi
50   - if [ -f php.log ] ; then cat php.log ; fi
51   - if [ -f build/logs/phpunit.json ] ; then ./scripts/phpunit-top-tests build/logs/phpunit.json ; fi
53 after_success:
54   - bash <(curl -s https://codecov.io/bash)
56 matrix:
57   fast_finish: true
58   include:
59     - php: "7.0"
60       env: CI_MODE=release
61     - php: "7.0"
62       env: CI_MODE=docs
63     - os: osx
64       language: generic
65       env: CI_MODE=test
66       before_install:
67         - brew tap homebrew/php
68         - brew update
69         - brew install gettext php70 mariadb
70         - brew link --force gettext
71         - sed -i -e 's/^memory_limit = .*/memory_limit = -1/' /usr/local/etc/php/7.0/php.ini
72         - curl https://getcomposer.org/installer | php
73         - ln -s "`pwd`/composer.phar" /usr/local/bin/composer
74         - mysql.server start
76 cache:
77   pip: true
78   directories:
79     - $HOME/.composer/cache/
80     - $HOME/browserstack
81     - $HOME/runkit
82 # Install APT packages
83 #  - git > 2.5.1 needed for worktrees
84 #  - mysql server does not seem to be always present on Travis Trusty environment
85 addons:
86   apt:
87     packages:
88     - git
89     - mysql-server-5.6