.travis.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. language: cpp
  2. before_install:
  3. - sudo add-apt-repository ppa:yjwong/gflags -y
  4. - sudo add-apt-repository ppa:h-rayflood/llvm -y
  5. - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
  6. - echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
  7. - echo "deb http://download.mono-project.com/repo/debian wheezy-libtiff-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
  8. - sudo apt-get update -qq
  9. - sudo apt-get install -qq libgtest-dev libgflags-dev python-virtualenv python-dev python3-dev clang-3.5
  10. - sudo pip install --upgrade virtualenv
  11. - sudo pip install cpp-coveralls mako simplejson
  12. - sudo apt-get install -qq mono-devel nunit
  13. - wget www.nuget.org/NuGet.exe -O nuget.exe
  14. env:
  15. global:
  16. - RUBY_VERSION=2.1
  17. - COVERALLS_PARALLEL=true
  18. - CPPFLAGS=-I/tmp/prebuilt/include
  19. - NUGET="mono nuget.exe"
  20. matrix:
  21. - CONFIG=opt TEST=sanity JOBS=1
  22. - CONFIG=gcov TEST=c JOBS=16
  23. - CONFIG=gcov TEST=c++ JOBS=16
  24. - CONFIG=opt TEST=c JOBS=16
  25. - CONFIG=opt TEST=c++ JOBS=16
  26. - CONFIG=opt TEST=node JOBS=16
  27. - CONFIG=opt TEST=ruby JOBS=16
  28. - CONFIG=opt TEST=python JOBS=1
  29. - CONFIG=opt TEST=csharp JOBS=16
  30. - USE_GCC=4.4 CONFIG=opt TEST=build JOBS=16
  31. script:
  32. - rvm use $RUBY_VERSION
  33. - gem install bundler
  34. - ./tools/run_tests/prepare_travis.sh
  35. - if [ ! -z "$USE_GCC" ] ; then export CC=gcc-$USE_GCC ; export CXX=g++-$USE_GCC ; fi
  36. - ./tools/run_tests/run_tests.py -l $TEST -t -j $JOBS -c $CONFIG -s 4.0
  37. after_success:
  38. - if [ "$CONFIG" = "gcov" ] ; then coveralls --exclude third_party --exclude gens --exclude test --exclude tools --exclude src/compiler -b. --gcov-options '\-p' ; fi
  39. notifications:
  40. email: false
  41. webhooks:
  42. - https://coveralls.io/webhook?repo_token=54IxAHPjJNdQJzJAhPU0MFpCtg7KvcydQ