Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 1 | sudo: required |
Thomas Van Lenten | c4d3638 | 2015-06-09 13:35:41 -0400 | [diff] [blame] | 2 | # Note: travis currently does not support listing more than one language so |
| 3 | # this cheats and claims to only be cpp. If they add multiple language |
| 4 | # support, this should probably get updated to install steps and/or |
| 5 | # rvm/gemfile/jdk/etc. entries rather than manually doing the work. |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 6 | language: cpp |
Tamir Duberstein | ed71504 | 2015-03-18 00:43:34 -0700 | [diff] [blame] | 7 | os: |
| 8 | - linux |
| 9 | - osx |
Thomas Van Lenten | 1324119 | 2016-02-16 09:19:50 -0500 | [diff] [blame] | 10 | # The Objective C build needs Xcode 7.0 or later. |
| 11 | osx_image: xcode7.2 |
Tamir Duberstein | 9a2f1f6 | 2015-03-31 11:25:39 -0700 | [diff] [blame] | 12 | script: |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 13 | - ./travis.sh $CONFIG |
| 14 | env: |
| 15 | - CONFIG=cpp |
| 16 | - CONFIG=cpp_distcheck |
Jan Tattermusch | ddb36ef | 2015-05-18 17:34:02 -0700 | [diff] [blame] | 17 | - CONFIG=csharp |
Tim Swast | 7e31c4d | 2015-11-20 15:32:53 -0800 | [diff] [blame] | 18 | - CONFIG=golang |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 19 | - CONFIG=java_jdk6 |
| 20 | - CONFIG=java_jdk7 |
| 21 | - CONFIG=java_oracle7 |
| 22 | - CONFIG=javanano_jdk6 |
| 23 | - CONFIG=javanano_jdk7 |
| 24 | - CONFIG=javanano_oracle7 |
Josh Haberman | e9cf31e | 2015-12-21 15:18:17 -0800 | [diff] [blame] | 25 | - CONFIG=javascript |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 26 | - CONFIG=python |
| 27 | - CONFIG=python_cpp |
| 28 | - CONFIG=ruby19 |
| 29 | - CONFIG=ruby20 |
| 30 | - CONFIG=ruby21 |
| 31 | - CONFIG=ruby22 |
| 32 | - CONFIG=jruby |
Feng Xiao | 9cbdaed | 2015-06-08 13:00:45 -0700 | [diff] [blame] | 33 | matrix: |
Thomas Van Lenten | c4d3638 | 2015-06-09 13:35:41 -0400 | [diff] [blame] | 34 | exclude: |
| 35 | # It's nontrivial to programmatically install a new JDK from the command |
| 36 | # line on OS X, so we rely on testing on Linux for Java code. |
| 37 | - os: osx |
| 38 | env: CONFIG=java_jdk6 |
| 39 | - os: osx |
| 40 | env: CONFIG=java_jdk7 |
| 41 | - os: osx |
| 42 | env: CONFIG=java_oracle7 |
| 43 | - os: osx |
| 44 | env: CONFIG=javanano_jdk6 |
| 45 | - os: osx |
| 46 | env: CONFIG=javanano_jdk7 |
| 47 | - os: osx |
| 48 | env: CONFIG=javanano_oracle7 |
| 49 | # Requires installing mono, currently travis.sh is doing that with apt-get |
| 50 | # which doesn't work on OS X. |
Feng Xiao | 9cbdaed | 2015-06-08 13:00:45 -0700 | [diff] [blame] | 51 | - os: osx |
| 52 | env: CONFIG=csharp |
Tim Swast | 7e31c4d | 2015-11-20 15:32:53 -0800 | [diff] [blame] | 53 | # Requires installing golang, currently travis.sh is doing that with apt-get |
| 54 | # which doesn't work on OS X. |
| 55 | - os: osx |
| 56 | env: CONFIG=golang |
Thomas Van Lenten | 9642b82 | 2015-06-10 17:21:23 -0400 | [diff] [blame] | 57 | # Add into the matrix OS X tests of Objective C (needs Xcode, so it won't |
| 58 | # work on other platforms). These are split so it doesn't take as long to run. |
| 59 | include: |
| 60 | - os: osx |
| 61 | env: CONFIG=objectivec_ios |
| 62 | - os: osx |
| 63 | env: CONFIG=objectivec_osx |
Thomas Van Lenten | c4d3638 | 2015-06-09 13:35:41 -0400 | [diff] [blame] | 64 | allow_failures: |
| 65 | # These currently do not work on OS X but are being worked on by @haberman. |
Feng Xiao | 9cbdaed | 2015-06-08 13:00:45 -0700 | [diff] [blame] | 66 | - os: osx |
| 67 | env: CONFIG=ruby22 |
| 68 | - os: osx |
| 69 | env: CONFIG=jruby |
Thomas Van Lenten | e0dd14c | 2016-02-18 13:22:05 -0500 | [diff] [blame] | 70 | # https://github.com/google/protobuf/issues/1253 - Started failing when |
| 71 | # we moved to an OS X image that is 10.11. |
| 72 | - os: osx |
| 73 | env: CONFIG=python_cpp |
Feng Xiao | 0c7f624 | 2014-12-12 17:22:35 -0800 | [diff] [blame] | 74 | notifications: |
| 75 | email: false |