3 # This doesn't work - travis defaults to plain gcc if unknown
4 # http://github.com/travis-ci/travis-ci/issues/979
19 # Commands before installing prerequisites
21 # we can't compile with this system version
22 - time sudo apt-get remove libsqlite3-dev
23 - time TRAVIS=1 ./configure_generic.sh -DENABLE_COTIRE=ON
25 - time sudo locale-gen de_DE && sudo locale-gen zh_CN.utf8 && sudo locale-gen fr_FR
27 # mysql configuration for unit-tests
28 - mysql -e 'CREATE DATABASE IF NOT EXISTS hhvm;'
29 - export PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=hhvm"
30 - export PDO_MYSQL_TEST_USER="travis"
31 - export PDO_MYSQL_TEST_PASS=""
32 # For PHP5 mysqli tests
33 - export MYSQL_TEST_USER="travis"
34 - export MYSQL_TEST_DB="hhvm"
36 - export REDIS_TEST_HOST="localhost"
38 # Sadly, travis only gives up 50 minutes to compile and run our tests. The
39 # compilation machines usually have a bunch of CPUs but very little RAM so gcc
40 # dies trying to compile some of our files if we do more than -j 6. So, with -j
41 # 6 that takes ~40 minutes, leaving only 10 minutes to test. The only thing we
42 # can fit in that time is the quick tests in no-repo mode. So basically this is
43 # a smoke test (did it compile and not segfault immediately) instead of a real
44 # test run. Please check out the attached phabricator to your PR for full unit
47 - TEST_RUN_MODE="-m jit quick"
48 - TEST_RUN_MODE="-m interp quick"
51 script: time hphp/hhvm/hhvm hphp/test/run $TEST_RUN_MODE
54 # The default is to send email on all failures and changed success
55 # Adding other notifiers (like IRC) does not disable the email one