Merge pull request #2142 from indragiek/master
[hiphop-php.git] / .travis.yml
blob88c682749882ac4f318d427381fecf0b408f9da9
1 language: cpp
3 compiler:
4   - gcc
6 before_script:
7   - time TRAVIS=1 ./configure_generic.sh
8 # for some tests
9   - time sudo locale-gen de_DE && sudo locale-gen zh_CN.utf8 && sudo locale-gen fr_FR
10   - time HPHP_HOME=`pwd` make -j 6
11   - cd hphp/test/zend/good/ext/curl/tests/responder && ../../../../../../../hhvm/hhvm -m server -p 8444 &
12 # mysql configuration for unit-tests
13   - mysql -e 'CREATE DATABASE IF NOT EXISTS hhvm;'
14   - export PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=hhvm"
15   - export PDO_MYSQL_TEST_USER="travis"
16   - export PDO_MYSQL_TEST_PASS=""
18 # The larger test suites (slow, zend) take longer than 50 minutes to run. Since
19 # we have no way to change the timeout, we subdivide the jit/interp repo/normal
20 # matrix and then further split the large suites using an experimental cut
21 # which divides the number of tests in each sub-run roughly in two.
22 env:
23   - TEST_RUN_MODE="-m jit quick"
24   - TEST_RUN_MODE="-m jit slow -I /^hphp\/test\/slow\/[a-df-nw-x].*/"
25   - TEST_RUN_MODE="-m jit slow -E /^hphp\/test\/slow\/[a-df-nw-x].*/"
26   - TEST_RUN_MODE="-m jit zend -I /^hphp\/test\/zend\/good\/(ext\/[a-ru-zA-Z0-9]|[Z]).*/"
27   - TEST_RUN_MODE="-m jit zend -E /^hphp\/test\/zend\/good\/(ext\/[a-ru-zA-Z0-9]|[Z]).*/"
28   - TEST_RUN_MODE="-m jit -r quick"
29   - TEST_RUN_MODE="-m jit -r slow -I /^hphp\/test\/slow\/[a-b].*/"
30   - TEST_RUN_MODE="-m jit -r slow -I /^hphp\/test\/slow\/[df-h].*/"
31   - TEST_RUN_MODE="-m jit -r slow -I /^hphp\/test\/slow\/[ci-nw-x].*/"
32   - TEST_RUN_MODE="-m jit -r slow -I /^hphp\/test\/slow\/[eo-p].*/"
33   - TEST_RUN_MODE="-m jit -r slow -I /^hphp\/test\/slow\/[q-vy-zA-Z0-9].*/"
34   - TEST_RUN_MODE="-m jit -r zend -I /^hphp\/test\/zend\/good\/ext\/[a-e].*/"
35   - TEST_RUN_MODE="-m jit -r zend -I /^hphp\/test\/zend\/good\/ext\/[f-l].*/"
36   - TEST_RUN_MODE="-m jit -r zend -I /^hphp\/test\/zend\/good\/ext\/[m-rt-zA-Z0-9].*/"
37   - TEST_RUN_MODE="-m jit -r zend -I /^hphp\/test\/zend\/good\/ext\/s[^t].*/"
38   - TEST_RUN_MODE="-m jit -r zend -I /^hphp\/test\/zend\/good\/ext\/standard\/tests\/a.*/"
39   - TEST_RUN_MODE="-m jit -r zend -I /^hphp\/test\/zend\/good\/ext\/standard\/tests\/[b-f].*/"
40   - TEST_RUN_MODE="-m jit -r zend -I /^hphp\/test\/zend\/good\/ext\/standard\/tests\/[g-zA-Z0-9].*/"  
41   - TEST_RUN_MODE="-m jit -r zend -I /^hphp\/test\/zend\/good\/t.*/"
42   - TEST_RUN_MODE="-m jit -r zend -I /^hphp\/test\/zend\/good\/Z.*/"
43   - TEST_RUN_MODE="-m interp quick"
44   - TEST_RUN_MODE="-m interp slow -I /^hphp\/test\/slow\/[a-df-nw-x].*/"
45   - TEST_RUN_MODE="-m interp slow -E /^hphp\/test\/slow\/[a-df-nw-x].*/"
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]).*/"
48   - TEST_RUN_MODE="-m interp -r quick -I /^hphp\/test\/quick\/[a-h].*/"
49   - TEST_RUN_MODE="-m interp -r quick -I /^hphp\/test\/quick\/[i-zA-Z0-9].*/"
50   - TEST_RUN_MODE="-m interp -r slow -I /^hphp\/test\/slow\/a.*/"
51   - TEST_RUN_MODE="-m interp -r slow -I /^hphp\/test\/slow\/[bd].*/"
52   - TEST_RUN_MODE="-m interp -r slow -I /^hphp\/test\/slow\/c.*/"
53   - TEST_RUN_MODE="-m interp -r slow -I /^hphp\/test\/slow\/[f-nw-x].*/"
54   - TEST_RUN_MODE="-m interp -r slow -I /^hphp\/test\/slow\/[eo-p].*/"
55   - TEST_RUN_MODE="-m interp -r slow -I /^hphp\/test\/slow\/[q-s].*/"
56   - TEST_RUN_MODE="-m interp -r slow -I /^hphp\/test\/slow\/[t-vy-zA-Z0-9].*/"
57   - TEST_RUN_MODE="-m interp -r zend -I /^hphp\/test\/zend\/good\/ext\/[a-i].*/"
58   - TEST_RUN_MODE="-m interp -r zend -I /^hphp\/test\/zend\/good\/ext\/[j-m].*/"
59   - TEST_RUN_MODE="-m interp -r zend -I /^hphp\/test\/zend\/good\/ext\/[n-rt-zA-Z0-9].*/"
60   - TEST_RUN_MODE="-m interp -r zend -I /^hphp\/test\/zend\/good\/ext\/s[^t].*/"
61   - TEST_RUN_MODE="-m interp -r zend -I /^hphp\/test\/zend\/good\/ext\/standard\/tests\/[a-f].*/"
62   - TEST_RUN_MODE="-m interp -r zend -I /^hphp\/test\/zend\/good\/ext\/standard\/tests\/[g-zA-Z0-9].*/"
63   - TEST_RUN_MODE="-m interp -r zend -I /^hphp\/test\/zend\/good\/t.*/"
64   - TEST_RUN_MODE="-m interp -r zend -I /^hphp\/test\/zend\/good\/Z.*/"
66     
67 script: time PHP_CURL_HTTP_REMOTE_SERVER="http://localhost:8444" hphp/hhvm/hhvm hphp/test/run $TEST_RUN_MODE
69 notifications:
70   email: false
71   irc: "chat.freenode.net#hhvm"
73 matrix:
74   fast_finish: true