|
1 | 1 | matrix:
|
2 | 2 | include:
|
| 3 | + # C++ implementation. Lives in cpp/, tested with bazel. |
3 | 4 | - language: cpp
|
| 5 | + env: OLC_PATH=cpp |
4 | 6 | script:
|
5 | 7 | - wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/0.5.3/bazel-0.5.3-installer-linux-x86_64.sh"
|
6 | 8 | - chmod +x install.sh
|
7 | 9 | - ./install.sh --user && rm -f install.sh
|
8 |
| - - ~/bin/bazel test --test_output=all cpp:openlocationcode_test |
| 10 | + - ~/bin/bazel test --test_output=all ${OLC_PATH}:all |
| 11 | + |
| 12 | + # Dart implementation. Lives in dart/ |
9 | 13 | #- language: dart
|
10 | 14 | # dart: stable
|
| 15 | + # env: OLC_PATH=dart |
11 | 16 | # script:
|
12 | 17 | # - cd dart && pub get && pub run test
|
| 18 | + |
| 19 | + # Go implementation. Lives in go/ |
13 | 20 | #- language: go
|
14 | 21 | # go: stable
|
| 22 | + # env: OLC_PATH=go |
15 | 23 | # script:
|
16 | 24 | # - go test ./go
|
| 25 | + |
| 26 | + # Java implementation. Lives in java/, tested with bazel. |
| 27 | + - language: java |
| 28 | + env: OLC_PATH=java |
| 29 | + script: |
| 30 | + - wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/0.5.3/bazel-0.5.3-installer-linux-x86_64.sh" |
| 31 | + - chmod +x install.sh |
| 32 | + - ./install.sh --user && rm -f install.sh |
| 33 | + - ~/bin/bazel test --test_output=all ${OLC_PATH}:all |
| 34 | + |
| 35 | + # Javascript Closure library implementation. Lives in js/closure, tested with bazel. |
| 36 | + # We use language "c" because bazel will install all the dependencies we need. |
| 37 | + - language: c |
| 38 | + env: OLC_PATH=js/closure |
| 39 | + script: |
| 40 | + - wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/0.5.3/bazel-0.5.3-installer-linux-x86_64.sh" |
| 41 | + - chmod +x install.sh |
| 42 | + - ./install.sh --user && rm -f install.sh |
| 43 | + - ~/bin/bazel test --test_output=all ${OLC_PATH}:all |
| 44 | + |
| 45 | + # Javascript implementation. Lives in js/. |
17 | 46 | #- language: node_js
|
18 | 47 | # node_js:
|
19 | 48 | # - "0.10"
|
| 49 | + # env: OLC_PATH=js |
20 | 50 | # script:
|
21 | 51 | # - cd js && npm install && npm test
|
| 52 | + |
| 53 | + # Python implementation. Lives in python/, tested with bazel. |
22 | 54 | - language: python
|
23 | 55 | python: 3.4
|
| 56 | + env: OLC_PATH=python |
24 | 57 | script:
|
25 | 58 | - wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/0.5.3/bazel-0.5.3-installer-linux-x86_64.sh"
|
26 | 59 | - chmod +x install.sh
|
27 | 60 | - ./install.sh --user && rm -f install.sh
|
28 |
| - - ~/bin/bazel test --test_output=all python:openlocationcode_test |
| 61 | + - ~/bin/bazel test --test_output=all ${OLC_PATH}:all |
| 62 | + |
| 63 | + # Ruby implementation. Lives in ruby/ |
29 | 64 | #- language: ruby
|
30 | 65 | # rvm: 2.2
|
| 66 | + # env: OLC_PATH=ruby |
31 | 67 | # script:
|
32 | 68 | # - gem install test-unit
|
33 | 69 | # - cd ruby && ruby test/plus_codes_test.rb
|
| 70 | + |
| 71 | + # Rust implementation. Lives in rust/ |
34 | 72 | #- language: rust
|
| 73 | + # env: OLC_PATH=rust |
35 | 74 | # script:
|
36 | 75 | # - cd rust/
|
37 | 76 | # - cargo build --verbose --all
|
|
0 commit comments