.travis.yml 2.87 KB
Newer Older
1
sudo: required
2
dist: trusty
3 4 5 6
# Note: travis currently does not support listing more than one language so
# this cheats and claims to only be cpp.  If they add multiple language
# support, this should probably get updated to install steps and/or
# rvm/gemfile/jdk/etc. entries rather than manually doing the work.
7
language: cpp
8 9
os:
  - osx
10
# The Objective C build needs Xcode 7.0 or later.
Thomas Van Lenten's avatar
Thomas Van Lenten committed
11
osx_image: xcode8.1
12
script:
13
  - ./tests.sh $CONFIG
14 15 16
env:
  - CONFIG=cpp
  - CONFIG=cpp_distcheck
Tim Swast's avatar
Tim Swast committed
17
  - CONFIG=golang
18 19 20 21
  - CONFIG=java_jdk7
  - CONFIG=java_oracle7
  - CONFIG=javanano_jdk7
  - CONFIG=javanano_oracle7
22
  - CONFIG=javascript
23 24 25 26 27
  # iOS build log was starting to choke travis UI, so split to cover the
  # Xcode Debug and Release Configurations independently.
  - CONFIG=objectivec_ios_debug
  - CONFIG=objectivec_ios_release
  - CONFIG=objectivec_osx
28
  - CONFIG=objectivec_cocoapods_integration
29 30 31 32 33
  - CONFIG=python
  - CONFIG=python_cpp
  - CONFIG=ruby21
  - CONFIG=ruby22
  - CONFIG=jruby
34
  - CONFIG=php5.6_mac
35
  - CONFIG=php7.0_mac
36
matrix:
37 38 39 40 41 42 43 44 45 46 47
  exclude:
    # It's nontrivial to programmatically install a new JDK from the command
    # line on OS X, so we rely on testing on Linux for Java code.
    - os: osx
      env: CONFIG=java_jdk7
    - os: osx
      env: CONFIG=java_oracle7
    - os: osx
      env: CONFIG=javanano_jdk7
    - os: osx
      env: CONFIG=javanano_oracle7
Tim Swast's avatar
Tim Swast committed
48 49 50 51
    # Requires installing golang, currently travis.sh is doing that with apt-get
    # which doesn't work on OS X.
    - os: osx
      env: CONFIG=golang
52
  include:
53 54 55
    # The dotnet environment requires Ubuntu 14.04 or 16.04. This
    # configuration is effectively an "extra" one, outside the
    # autogenerated matrix.
56 57
    - os: linux
      env: CONFIG=csharp
58
      language: csharp
59
      dist: trusty
60 61
      dotnet: 1.0.1
      mono: none
62 63 64 65
    # This test is kept on travis because it doesn't play nicely with other
    # tests on jenkins running in parallel.
    - os: linux
      env: CONFIG=cpp_distcheck
66 67 68 69
    # The Java compatibility test currently only runs on Linux because it will
    # fetch pre-built Linux protoc binaries in the test.
    - os: linux
      env: CONFIG=java_compatibility
70 71 72 73
    # The Python compatibility test currently only runs on Linux because it will
    # fetch pre-built Linux protoc binaries in the test.
    - os: linux
      env: CONFIG=python_compatibility
74 75
  allow_failures:
    # These currently do not work on OS X but are being worked on by @haberman.
76 77 78 79
    - os: osx
      env: CONFIG=ruby22
    - os: osx
      env: CONFIG=jruby
80 81 82 83
    # https://github.com/google/protobuf/issues/1253 - Started failing when
    # we moved to an OS X image that is 10.11.
    - os: osx
      env: CONFIG=python_cpp
84 85 86 87
    # Mark the iOS test as flakey as xcodebuild some times fails to start the
    # iOS Simulator.
    - os: osx
      env: CONFIG=objectivec_ios_debug
88
    - os: osx
89
      env: CONFIG=objectivec_ios_release
90 91
notifications:
  email: false