Fix build when using system installed lz4 library instead of third-party
[hiphop-php.git] / .travis.yml
blob02450c430a22c085e6f0640d16502c16e691ef78
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 # 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
42 # test coverage.
43 env:
44   - TEST_RUN_MODE="-m jit       quick"
45   - TEST_RUN_MODE="-m interp    quick"
47 # Main test script
48 script: time hphp/hhvm/hhvm hphp/test/run $TEST_RUN_MODE
50 # Notifications
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
53 notifications:
54   email: false
56 matrix:
57   fast_finish: true