Yong Ni | b2e4bfa | 2017-05-09 18:12:10 -0700 | [diff] [blame] | 1 | #!/usr/bin/env python2.7 |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 2 | # Copyright 2017 gRPC authors. |
Yong Ni | b2e4bfa | 2017-05-09 18:12:10 -0700 | [diff] [blame] | 3 | # |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
Yong Ni | b2e4bfa | 2017-05-09 18:12:10 -0700 | [diff] [blame] | 7 | # |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
Yong Ni | b2e4bfa | 2017-05-09 18:12:10 -0700 | [diff] [blame] | 9 | # |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
Yong Ni | b2e4bfa | 2017-05-09 18:12:10 -0700 | [diff] [blame] | 15 | |
| 16 | # Dictionaries used for client matrix testing. |
| 17 | |
| 18 | def get_github_repo(lang): |
| 19 | return { |
| 20 | 'go': 'git@github.com:grpc/grpc-go.git', |
| 21 | 'java': 'git@github.com:grpc/grpc-java.git', |
Yong Ni | 51750dc | 2017-07-14 11:30:56 -0700 | [diff] [blame] | 22 | # all other languages use the grpc.git repo. |
Yong Ni | b2e4bfa | 2017-05-09 18:12:10 -0700 | [diff] [blame] | 23 | }.get(lang, 'git@github.com:grpc/grpc.git') |
| 24 | |
| 25 | # Dictionary of runtimes per language |
| 26 | LANG_RUNTIME_MATRIX = { |
Yong Ni | 51750dc | 2017-07-14 11:30:56 -0700 | [diff] [blame] | 27 | 'cxx': ['cxx'], # This is actually debian8. |
Yong Ni | b2e4bfa | 2017-05-09 18:12:10 -0700 | [diff] [blame] | 28 | 'go': ['go1.7', 'go1.8'], |
Yong Ni | b92813b | 2017-05-31 12:07:09 -0700 | [diff] [blame] | 29 | 'java': ['java_oracle8'], |
Adele Zhou | bcd23cd | 2017-11-01 15:42:00 -0700 | [diff] [blame] | 30 | 'python': ['python'], |
| 31 | 'node': ['node'], |
Adele Zhou | 1487c9f | 2017-10-26 17:59:18 -0700 | [diff] [blame] | 32 | 'ruby': ['ruby'], |
Adele Zhou | 9fe79dc | 2017-11-02 14:08:29 -0700 | [diff] [blame] | 33 | 'php': ['php', 'php7'], |
Adele Zhou | f7f38d1 | 2017-11-02 17:57:54 -0700 | [diff] [blame^] | 34 | 'csharp': ['csharp', 'csharpcoreclr'], |
Yong Ni | b2e4bfa | 2017-05-09 18:12:10 -0700 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | # Dictionary of releases per language. For each language, we need to provide |
Yong Ni | bbd348c | 2017-07-18 08:38:11 -0700 | [diff] [blame] | 38 | # a release tag pointing to the latest build of the branch. |
Yong Ni | b2e4bfa | 2017-05-09 18:12:10 -0700 | [diff] [blame] | 39 | LANG_RELEASE_MATRIX = { |
Yong Ni | bbd348c | 2017-07-18 08:38:11 -0700 | [diff] [blame] | 40 | 'cxx': [ |
| 41 | 'v1.0.1', |
| 42 | 'v1.1.4', |
| 43 | 'v1.2.5', |
| 44 | 'v1.3.9', |
| 45 | 'v1.4.2', |
Adele Zhou | 1751af1 | 2017-10-18 17:37:05 -0700 | [diff] [blame] | 46 | 'v1.6.6', |
Yong Ni | bbd348c | 2017-07-18 08:38:11 -0700 | [diff] [blame] | 47 | ], |
| 48 | 'go': [ |
| 49 | 'v1.0.5', |
| 50 | 'v1.2.1', |
| 51 | 'v1.3.0', |
| 52 | 'v1.4.2', |
Adele Zhou | 1751af1 | 2017-10-18 17:37:05 -0700 | [diff] [blame] | 53 | 'v1.5.2', |
| 54 | 'v1.6.0', |
| 55 | 'v1.7.0', |
Yong Ni | bbd348c | 2017-07-18 08:38:11 -0700 | [diff] [blame] | 56 | ], |
| 57 | 'java': [ |
| 58 | 'v1.0.3', |
| 59 | 'v1.1.2', |
| 60 | 'v1.2.0', |
| 61 | 'v1.3.1', |
| 62 | 'v1.4.0', |
| 63 | 'v1.5.0', |
Adele Zhou | 1751af1 | 2017-10-18 17:37:05 -0700 | [diff] [blame] | 64 | 'v1.6.1', |
| 65 | 'v1.7.0', |
Yong Ni | bbd348c | 2017-07-18 08:38:11 -0700 | [diff] [blame] | 66 | ], |
Adele Zhou | 1487c9f | 2017-10-26 17:59:18 -0700 | [diff] [blame] | 67 | 'python': [ |
Adele Zhou | 9fe79dc | 2017-11-02 14:08:29 -0700 | [diff] [blame] | 68 | #'v1.0.x', #Fail to run the test. #13230. |
Adele Zhou | 1487c9f | 2017-10-26 17:59:18 -0700 | [diff] [blame] | 69 | 'v1.1.4', |
| 70 | 'v1.2.5', |
| 71 | 'v1.3.9', |
| 72 | 'v1.4.2', |
| 73 | 'v1.6.6', |
| 74 | ], |
Adele Zhou | 1487c9f | 2017-10-26 17:59:18 -0700 | [diff] [blame] | 75 | 'node': [ |
Adele Zhou | bcd23cd | 2017-11-01 15:42:00 -0700 | [diff] [blame] | 76 | 'v1.0.1', |
| 77 | 'v1.1.4', |
| 78 | 'v1.2.5', |
| 79 | 'v1.3.9', |
| 80 | 'v1.4.2', |
Adele Zhou | 1487c9f | 2017-10-26 17:59:18 -0700 | [diff] [blame] | 81 | 'v1.6.6', |
| 82 | ], |
| 83 | 'ruby': [ |
Adele Zhou | 9fe79dc | 2017-11-02 14:08:29 -0700 | [diff] [blame] | 84 | # Ruby v1.0.x doesn't have the fix #8914, therefore not supported. |
Adele Zhou | 1487c9f | 2017-10-26 17:59:18 -0700 | [diff] [blame] | 85 | 'v1.1.4', |
| 86 | 'v1.2.5', |
| 87 | 'v1.3.9', |
| 88 | 'v1.4.2', |
| 89 | 'v1.6.6', |
| 90 | ], |
Adele Zhou | 9fe79dc | 2017-11-02 14:08:29 -0700 | [diff] [blame] | 91 | 'php': [ |
| 92 | 'v1.0.1', |
| 93 | 'v1.1.4', |
| 94 | 'v1.2.5', |
| 95 | 'v1.3.9', |
| 96 | 'v1.4.2', |
| 97 | 'v1.6.6', |
| 98 | ], |
Adele Zhou | f7f38d1 | 2017-11-02 17:57:54 -0700 | [diff] [blame^] | 99 | 'csharp': [ |
| 100 | # Fail to build docker image with v1.3.9 and earlier. |
| 101 | #'v1.0.1', |
| 102 | #'v1.1.4', |
| 103 | #'v1.2.5', |
| 104 | #'v1.3.9', |
| 105 | 'v1.4.2', |
| 106 | 'v1.6.6', |
| 107 | ], |
Yong Ni | b2e4bfa | 2017-05-09 18:12:10 -0700 | [diff] [blame] | 108 | } |