forked from square/bazel_maven_repository
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (35 loc) · 1.06 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
dist: trusty
language: android
cache:
directories:
- $HOME/.m2
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- wget
- pkg-config
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
# - tools
# - platform-tools
# The BuildTools version used by your project
- build-tools-29.0.3
# The SDK version used to compile your project
- android-29
before_install:
- wget https://github.com/bazelbuild/bazelisk/releases/download/v1.4.0/bazelisk-linux-amd64
- sudo install bazelisk-linux-amd64 /usr/local/bin/bazel
- for rcfile in `find . -name travis.bazelrc` ; do cp ${rcfile} $(dirname ${rcfile})/user.bazelrc ; done
script:
- # Test the maven integration's internal unit tests
- bazel test //...
- # Exercise the kramer tool.
- (cd kramer && bazel build //...)
- (cd kramer && bazel test //...)
- # Exercise the sample project.
- (cd test/test_workspace && bazel build //...)
- (cd test/test_workspace && bazel test //...)