3 # This doesn't work - travis defaults to plain gcc if unknown
4 # http://github.com/travis-ci/travis-ci/issues/979
16 # Commands before installing prerequisites
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
22 - time sudo locale-gen de_DE && sudo locale-gen zh_CN.utf8 && sudo locale-gen fr_FR
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"
33 - export REDIS_TEST_HOST="localhost"
35 # Sadly, travis only gives up 50 minutes to compile and run our tests. The
36 # compilation machines usually have a bunch of CPUs but very little RAM so gcc
37 # dies trying to compile some of our files if we do more than -j 6. So, with -j
38 # 6 that takes ~40 minutes, leaving only 10 minutes to test. The only thing we
39 # can fit in that time is the quick tests in no-repo mode. So basically this is
40 # a smoke test (did it compile and not segfault immediately) instead of a real
41 # test run. Please check out the attached phabricator to your PR for full unit
44 - TEST_RUN_MODE="-m jit quick"
45 - TEST_RUN_MODE="-m interp quick"
48 script: time hphp/hhvm/hhvm hphp/test/run $TEST_RUN_MODE
51 # The default is to send email on all failures and changed success
52 # Adding other notifiers (like IRC) does not disable the email one