-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
54 lines (49 loc) · 1.5 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
language: node_js
env:
global:
- TEST_NODE=no
- TEST_PYTHON=no
- TEST_RUBY=no
- TEST_GO=no
matrix:
include:
- node_js: node
env:
- TEST_NODE=yes
- python: 2.7
env:
- TEST_PYTHON=yes
- python: 3.4
env:
- TEST_PYTHON=yes
- python: 3.5
env:
- TEST_PYTHON=yes
- python: 3.6
env:
- TEST_PYTHON=yes
- rvm: 2.4
env:
- TEST_RUBY=yes
- go: 1.7
env:
- TEST_GO=yes
before_install:
- curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip
- unzip protoc-3.2.0-linux-x86_64.zip -d protoc3
- sudo mv protoc3/bin/* /usr/local/bin/
- sudo mv protoc3/include/* /usr/local/include/
- if [ $TEST_NODE == "yes" ]; then cd js; npm run prepare; fi
- if [ $TEST_PYTHON == "yes" ]; then cd python; fi
- if [ $TEST_RUBY == "yes" ]; then cd ruby; gem install bundler -v 1.15.3; fi
- if [ $TEST_GO == "yes" ]; then cd go/gis/protobuf; export GOPATH=$(pwd); fi
install:
- if [ $TEST_NODE == "yes" ]; then npm install; fi
- if [ $TEST_PYTHON == "yes" ]; then pip install protobuf==3.3.0; fi
- if [ $TEST_RUBY == "yes" ]; then ./bin/setup; fi
- if [ $TEST_GO == "yes" ]; then go get github.com/golang/protobuf/proto; fi
script:
- if [ $TEST_NODE == "yes" ]; then npm test; fi
- if [ $TEST_PYTHON == "yes" ]; then python setup.py test; fi
- if [ $TEST_RUBY == "yes" ]; then rake spec; fi
- if [ $TEST_GO == "yes" ]; then go test -v; fi