summaryrefslogtreecommitdiff
path: root/travis.sh
blob: 74cc48a4e83f129be02dcddb6c49ff121b74e8a3 (plain)
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
#!/bin/bash

# Bare build: no dependencies installed, no JIT enabled.
bare_install() {
  :
}
bare_script() {
  make -j12 tests && make test
}

# Bare JIT build: no dependencies installed, but JIT enabled.
barejit_install() {
  :
}
barejit_script() {
  make -j12 tests WITH_JIT=yes && make test
}

# Build with Google protobuf support and tests (with JIT).
withprotobuf_install() {
  sudo apt-get update -qq
  sudo apt-get install protobuf-compiler libprotobuf-dev
}
withprotobuf_script() {
  make -j12 tests googlepbtests WITH_JIT=yes
  make test
}

set -e
set -x
eval ${UPB_TRAVIS_BUILD}_${1}

generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback