Fix ini files based on new normalization
[hiphop-php.git] / .travis.yml
blob915d08ff3628ae961560157a4172827e03e0419c
1 language: cpp
3 # This doesn't work - travis defaults to plain gcc if unknown
4 # http://github.com/travis-ci/travis-ci/issues/979
5 # http://llvm.org/apt/
6 compiler:
7   - gcc
8 #  - gcc-4.8
9 #  - clang-3.4
10 #  - clang-3.5
12 services:
13   - memcached
14   - redis-server
16 # Commands before installing prerequisites
17 before_script:
18 # we can't compile with this system version
19   - time sudo apt-get remove libsqlite3-dev
20   - time TRAVIS=1 ./configure_generic.sh -DENABLE_COTIRE=ON
21 # for some tests
22   - time sudo locale-gen de_DE && sudo locale-gen zh_CN.utf8 && sudo locale-gen fr_FR
23   - time make -j 6
24 # mysql configuration for unit-tests
25   - mysql -e 'CREATE DATABASE IF NOT EXISTS hhvm;'
26   - export PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=hhvm"
27   - export PDO_MYSQL_TEST_USER="travis"
28   - export PDO_MYSQL_TEST_PASS=""
29 # For PHP5 mysqli tests
30   - export MYSQL_TEST_USER="travis"
31   - export MYSQL_TEST_DB="hhvm"
32 # For redis tests
33   - export REDIS_TEST_HOST="localhost"
35 # The larger test suites (slow, zend) take longer than 50 minutes to run. Since
36 # we have no way to change the timeout, we subdivide the jit/interp repo/normal
37 # matrix and then further split the large suites using an experimental cut
38 # which divides the number of tests in each sub-run roughly in two.
39 env:
40   # non-repo
41   - TEST_RUN_MODE="-m jit       quick"
42   - TEST_RUN_MODE="-m interp    quick"
43   - TEST_RUN_MODE="-m jit       slow -I '#^hphp/test/slow/[a-df-nw-x].*#'"
44   - TEST_RUN_MODE="-m jit       slow -E '#^hphp/test/slow/[a-df-nw-x].*#'"
45   - TEST_RUN_MODE="-m interp    slow -I '#^hphp/test/slow/[a-df-nw-x].*#'"
46   - TEST_RUN_MODE="-m interp    slow -E '#^hphp/test/slow/[a-df-nw-x].*#'"
47   - TEST_RUN_MODE="-m jit       zend -I '#^hphp/test/zend/good/(ext/[a-ru-zA-Z0-9]|[Z]).*#'"
48   - TEST_RUN_MODE="-m jit       zend -E '#^hphp/test/zend/good/(ext/[a-ru-zA-Z0-9]|[Z]).*#'"
49   - TEST_RUN_MODE="-m interp    zend -I '#^hphp/test/zend/good/(ext/[a-ru-zA-Z0-9]|[Z]).*#'"
50   - TEST_RUN_MODE="-m interp    zend -E '#^hphp/test/zend/good/(ext/[a-ru-zA-Z0-9]|[Z]).*#'"
52   # quick repo
53   - TEST_RUN_MODE="-m jit    -r quick"
54   - TEST_RUN_MODE="-m interp -r quick -I '#^hphp/test/quick/[a-h].*#'"
55   - TEST_RUN_MODE="-m interp -r quick -I '#^hphp/test/quick/[i-zA-Z0-9].*#'"
57   # slow repo
58   - TEST_RUN_MODE="-m jit    -r slow -I '#^hphp/test/slow/[a-b].*#'"
59   - TEST_RUN_MODE="-m jit    -r slow -I '#^hphp/test/slow/[df-h].*#'"
60   - TEST_RUN_MODE="-m jit    -r slow -I '#^hphp/test/slow/[ci-nw-x].*#'"
61   - TEST_RUN_MODE="-m jit    -r slow -I '#^hphp/test/slow/[eo-p].*#'"
62   - TEST_RUN_MODE="-m jit    -r slow -I '#^hphp/test/slow/[q-vy-zA-Z0-9].*#'"
63   - TEST_RUN_MODE="-m interp -r slow -I '#^hphp/test/slow/a.*#'"
64   - TEST_RUN_MODE="-m interp -r slow -I '#^hphp/test/slow/[bd].*#'"
65   - TEST_RUN_MODE="-m interp -r slow -I '#^hphp/test/slow/c.*#'"
66   - TEST_RUN_MODE="-m interp -r slow -I '#^hphp/test/slow/[f-nw-x].*#'"
67   - TEST_RUN_MODE="-m interp -r slow -I '#^hphp/test/slow/[eo-p].*#'"
68   - TEST_RUN_MODE="-m interp -r slow -I '#^hphp/test/slow/[q-s].*#'"
69   - TEST_RUN_MODE="-m interp -r slow -I '#^hphp/test/slow/[t-vy-zA-Z0-9].*#'"
71   # zend repo
72   - TEST_RUN_MODE="-m jit    -r zend -I '#^hphp/test/zend/good/ext/[a-e].*#'"
73   - TEST_RUN_MODE="-m jit    -r zend -I '#^hphp/test/zend/good/ext/[f-l].*#'"
74   - TEST_RUN_MODE="-m jit    -r zend -I '#^hphp/test/zend/good/ext/[m-rt-zA-Z0-9].*#'"
75   - TEST_RUN_MODE="-m jit    -r zend -I '#^hphp/test/zend/good/ext/s[^t].*#'"
76   - TEST_RUN_MODE="-m jit    -r zend -I '#^hphp/test/zend/good/ext/standard/tests/a.*#'"
77   - TEST_RUN_MODE="-m jit    -r zend -I '#^hphp/test/zend/good/ext/standard/tests/[b-f].*#'"
78   - TEST_RUN_MODE="-m jit    -r zend -I '#^hphp/test/zend/good/ext/standard/tests/[g-zA-Z0-9].*#'"  
79   - TEST_RUN_MODE="-m jit    -r zend -I '#^hphp/test/zend/good/t.*#'"
80   - TEST_RUN_MODE="-m jit    -r zend -I '#^hphp/test/zend/good/Z.*#'"
81   - TEST_RUN_MODE="-m interp -r zend -I '#^hphp/test/zend/good/ext/[a-i].*#'"
82   - TEST_RUN_MODE="-m interp -r zend -I '#^hphp/test/zend/good/ext/[j-m].*#'"
83   - TEST_RUN_MODE="-m interp -r zend -I '#^hphp/test/zend/good/ext/[n-rt-zA-Z0-9].*#'"
84   - TEST_RUN_MODE="-m interp -r zend -I '#^hphp/test/zend/good/ext/s[^t].*#'"
85   - TEST_RUN_MODE="-m interp -r zend -I '#^hphp/test/zend/good/ext/standard/tests/[a-f].*#'"
86   - TEST_RUN_MODE="-m interp -r zend -I '#^hphp/test/zend/good/ext/standard/tests/[g-zA-Z0-9].*#'"
87   - TEST_RUN_MODE="-m interp -r zend -I '#^hphp/test/zend/good/t.*#'"
88   - TEST_RUN_MODE="-m interp -r zend -I '#^hphp/test/zend/good/Z.*#'"
90 # Main test script
91 script: time hphp/hhvm/hhvm hphp/test/run $TEST_RUN_MODE
93 # Notifications
94 # The default is to send email on all failures and changed success
95 # Adding other notifiers (like IRC) does not disable the email one
96 notifications:
97   email: false
98   irc:
99     channels:   "chat.freenode.net#hhvm-dev"
100     on_success: always
101     on_failure: always
102     use_notice: true
104 matrix:
105   fast_finish: true
106 #  include:
107 #    - compiler: clang
108 #      env: CC=clang-3.4 CXX=clang++-3.4  PACKAGE=clang-3.4
109 #    - compiler: clang
110 #      env: CC=clang-3.5 CXX=clang++-3.5  PACKAGE=clang-3.5
111 #    - compiler: gcc
112 #      env: CC=gcc-4.8   CXX=g++-4.8  PACKAGE=g++-4.8
113 # http://www.ubuntuupdates.org/package/core/trusty/main/base/gcc-4.9-base
114 #    - compiler: gcc
115 #      env: CC=gcc-4.9   CXX=g++-4.9  PACKAGE=g++-4.9
117 # everything that was pushed was already on 'master', except
118 # http://docs.travis-ci.com/user/build-configuration/#Using-regular-expressions
119 #branches:
120 #  only:
121 #    - master
122 #    - /^HHVM-.*$/