Skip to content

Commit f9596c8

Browse files
authored
Update .travis.yml
1 parent 5fa6473 commit f9596c8

File tree

1 file changed

+41
-2
lines changed

1 file changed

+41
-2
lines changed

.travis.yml

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,76 @@
11
matrix:
22
include:
3+
# C++ implementation. Lives in cpp/, tested with bazel.
34
- language: cpp
5+
env: OLC_PATH=cpp
46
script:
57
- wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/0.5.3/bazel-0.5.3-installer-linux-x86_64.sh"
68
- chmod +x install.sh
79
- ./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/
913
#- language: dart
1014
# dart: stable
15+
# env: OLC_PATH=dart
1116
# script:
1217
# - cd dart && pub get && pub run test
18+
19+
# Go implementation. Lives in go/
1320
#- language: go
1421
# go: stable
22+
# env: OLC_PATH=go
1523
# script:
1624
# - 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/.
1746
#- language: node_js
1847
# node_js:
1948
# - "0.10"
49+
# env: OLC_PATH=js
2050
# script:
2151
# - cd js && npm install && npm test
52+
53+
# Python implementation. Lives in python/, tested with bazel.
2254
- language: python
2355
python: 3.4
56+
env: OLC_PATH=python
2457
script:
2558
- wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/0.5.3/bazel-0.5.3-installer-linux-x86_64.sh"
2659
- chmod +x install.sh
2760
- ./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/
2964
#- language: ruby
3065
# rvm: 2.2
66+
# env: OLC_PATH=ruby
3167
# script:
3268
# - gem install test-unit
3369
# - cd ruby && ruby test/plus_codes_test.rb
70+
71+
# Rust implementation. Lives in rust/
3472
#- language: rust
73+
# env: OLC_PATH=rust
3574
# script:
3675
# - cd rust/
3776
# - cargo build --verbose --all

0 commit comments

Comments
 (0)