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