This repository has been archived by the owner on Aug 5, 2022. It is now read-only.
forked from bazelbuild/rules_scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (68 loc) · 1.67 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
dist: xenial
sudo: required
language: sh
addons:
apt:
packages:
- libxml2-utils
cache:
directories:
- .bazel_cache
- ~/.bazel_binaries
_linux: &linux
os: linux
_osx: &osx
os: osx
osx_image: xcode10.1
_windows:
os: windows
###
#
# Want to update/change bazel versions?
#
# 1. Update the bazel_version case statement in
# ./tools/bazel to include hashes for the bazel version
# you're targeting.
#
# 2. either
# - If you're updating the default bazel version, change
# default_bazel_version in ./tools/bazel.
# or
# - If you want to add an additional bazel version to the build
# matrix, set BAZEL_VERSION=<desired-version> along side
# TEST_SCRIPT below.
#
# 3. If you need to update the Windows version, adjust
# the windows specific install code below.
#
###
jobs:
include:
# Lint
- stage: test
<<: *linux
env: TEST_SCRIPT=test_lint
# Test
- <<: *linux
env: TEST_SCRIPT=test_rules_scala BAZEL_VERSION=2.0.0
- <<: *linux
env: TEST_SCRIPT=test_reproducibility BAZEL_VERSION=2.0.0
- <<: *osx
env: TEST_SCRIPT=test_rules_scala BAZEL_VERSION=2.0.0
- <<: *osx
env: TEST_SCRIPT=test_reproducibility BAZEL_VERSION=2.0.0
before_install:
- |
if [[ "${TRAVIS_OS_NAME}" == "windows" ]]; then
choco install jdk8 -params 'installdir=c:\\java8'
choco install bazel --version 0.28.0
fi
- cat .bazelrc.travis >> .bazelrc
script:
- |
if [[ "${TRAVIS_OS_NAME}" == "windows" ]]; then
powershell -Command 'Set-ExecutionPolicy RemoteSigned -scope CurrentUser'
export JAVA_HOME='c:\\\\java8'
export BAZEL_VERSION=host
fi
bash ./${TEST_SCRIPT}.sh ci