1
+ # Travis CI configuration.
2
+ # Each implementation is listed using the matrix:include configuration.
3
+
4
+ sudo : false
5
+ dist : trusty
1
6
matrix :
2
7
include :
3
8
# C++ implementation. Lives in cpp/, tested with bazel.
@@ -10,21 +15,24 @@ matrix:
10
15
- ~/bin/bazel test --test_output=all ${OLC_PATH}:all
11
16
12
17
# Dart implementation. Lives in dart/
13
- # - language: dart
14
- # dart: stable
15
- # env: OLC_PATH=dart
16
- # script:
17
- # - cd dart && pub get && pub run test
18
+ - language : dart
19
+ dart : stable
20
+ env : OLC_PATH=dart
21
+ script :
22
+ - cd dart && pub get && pub run test
18
23
19
24
# Go implementation. Lives in go/
20
- # - language: go
21
- # go: stable
22
- # env: OLC_PATH=go
23
- # script:
24
- # - go test ./go
25
+ - language : go
26
+ go : stable
27
+ env : OLC_PATH=go
28
+ script :
29
+ - go test ./go
25
30
26
31
# Java implementation. Lives in java/, tested with bazel.
27
32
- language : java
33
+ jdk :
34
+ - oraclejdk8
35
+ - openjdk6
28
36
env : OLC_PATH=java
29
37
script :
30
38
- wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/0.5.3/bazel-0.5.3-installer-linux-x86_64.sh"
@@ -43,12 +51,12 @@ matrix:
43
51
- ~/bin/bazel test --test_output=all ${OLC_PATH}:all
44
52
45
53
# Javascript implementation. Lives in js/.
46
- # - language: node_js
47
- # node_js:
48
- # - "0.10"
49
- # env: OLC_PATH=js
50
- # script:
51
- # - cd js && npm install && npm test
54
+ - language : node_js
55
+ node_js :
56
+ - " 0.10"
57
+ env : OLC_PATH=js
58
+ script :
59
+ - cd js && npm install && npm test
52
60
53
61
# Python implementation. Lives in python/, tested with bazel.
54
62
- language : python
@@ -61,25 +69,17 @@ matrix:
61
69
- ~/bin/bazel test --test_output=all ${OLC_PATH}:all
62
70
63
71
# Ruby implementation. Lives in ruby/
64
- # - language: ruby
65
- # rvm: 2.2
66
- # env: OLC_PATH=ruby
67
- # script:
68
- # - gem install test-unit
69
- # - cd ruby && ruby test/plus_codes_test.rb
72
+ - language : ruby
73
+ rvm : 2.2
74
+ env : OLC_PATH=ruby
75
+ script :
76
+ - gem install test-unit
77
+ - cd ruby && ruby test/plus_codes_test.rb
70
78
71
79
# Rust implementation. Lives in rust/
72
- # - language: rust
73
- # env: OLC_PATH=rust
74
- # script:
75
- # - cd rust/
76
- # - cargo build --verbose --all
77
- # - cargo test --verbose --all
78
-
79
- # Define the list of directories to execute tests in.
80
- # env:
81
- # - TEST_DIR=ruby
82
- # - TEST_DIR=python
83
-
84
- # Test script to run. This is called once for each TEST_DIR value above.
85
- # script: ./run_tests.sh
80
+ - language : rust
81
+ env : OLC_PATH=rust
82
+ script :
83
+ - cd rust/
84
+ - cargo build --verbose --all
85
+ - cargo test --verbose --all
0 commit comments