forked from google/open-location-code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
92 lines (82 loc) · 3.13 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Travis CI configuration.
# Each implementation is listed using the matrix:include configuration.
sudo: false
dist: trusty
matrix:
include:
# C++ implementation. Lives in cpp/, tested with bazel.
- language: cpp
env: OLC_PATH=cpp
script:
- wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/0.5.3/bazel-0.5.3-installer-linux-x86_64.sh"
- chmod +x install.sh
- ./install.sh --user && rm -f install.sh
- ~/bin/bazel test --test_output=all ${OLC_PATH}:all
# Dart implementation. Lives in dart/
- language: dart
dart: stable
env: OLC_PATH=dart
script:
- cd dart && pub get && pub run test
# Go implementation. Lives in go/
- language: go
go: stable
env: OLC_PATH=go
script:
- go test ./go
# Java implementation. Lives in java/, tested with bazel.
- language: java
jdk: oraclejdk8
env: OLC_PATH=java
script:
- wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/0.5.3/bazel-0.5.3-installer-linux-x86_64.sh"
- chmod +x install.sh
- ./install.sh --user && rm -f install.sh
- ~/bin/bazel test --test_output=all ${OLC_PATH}:all
# Javascript Closure library implementation. Lives in js/closure, tested with bazel.
# We use language "c" because bazel will install all the dependencies we need.
- language: c
env: OLC_PATH=js/closure
script:
- wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/0.5.3/bazel-0.5.3-installer-linux-x86_64.sh"
- chmod +x install.sh
- ./install.sh --user && rm -f install.sh
- ~/bin/bazel test --test_output=all ${OLC_PATH}:all
# Javascript implementation. Lives in js/.
- language: node_js
node_js: "node"
env: OLC_PATH=js
script:
- cd js && npm install && npm test
# Python implementation. Lives in python/, tested with bazel.
- language: python
python: 2.7
env: OLC_PATH=python
script:
- wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/0.5.3/bazel-0.5.3-installer-linux-x86_64.sh"
- chmod +x install.sh
- ./install.sh --user && rm -f install.sh
- ~/bin/bazel test --test_output=all ${OLC_PATH}:all
# Python implementation. Lives in python/, tested with bazel.
- language: python
python: 3.4
env: OLC_PATH=python
script:
- wget -O install.sh "https://github.com/bazelbuild/bazel/releases/download/0.5.3/bazel-0.5.3-installer-linux-x86_64.sh"
- chmod +x install.sh
- ./install.sh --user && rm -f install.sh
- ~/bin/bazel test --test_output=all ${OLC_PATH}:all
# Ruby implementation. Lives in ruby/
- language: ruby
rvm: 2.2
env: OLC_PATH=ruby
script:
- gem install test-unit
- cd ruby && ruby test/plus_codes_test.rb
# Rust implementation. Lives in rust/
- language: rust
env: OLC_PATH=rust
script:
- cd rust/
- cargo build --verbose --all
- cargo test --verbose --all