mirror of
https://github.com/google/brotli.git
synced 2024-11-21 19:20:09 +00:00
Update bazel to 2.2 + update config (#798)
Newer bazel does not support `maven_jar` rule anymore...
This commit is contained in:
parent
924b2b2b9d
commit
f83aa5169e
@ -195,8 +195,7 @@ matrix:
|
|||||||
|
|
||||||
- os: osx
|
- os: osx
|
||||||
env: BUILD_SYSTEM=bazel
|
env: BUILD_SYSTEM=bazel
|
||||||
# Latest image with Java 1.8 (required to install Bazel).
|
osx_image: xcode11.3
|
||||||
osx_image: xcode9.3
|
|
||||||
language: java
|
language: java
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
@ -5,12 +5,24 @@ local_repository(
|
|||||||
path = "..",
|
path = "..",
|
||||||
)
|
)
|
||||||
|
|
||||||
maven_jar(
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
|
||||||
name = "junit_junit",
|
|
||||||
artifact = "junit:junit:4.12",
|
RULES_JVM_EXTERNAL_TAG = "3.0"
|
||||||
|
RULES_JVM_EXTERNAL_SHA = "62133c125bf4109dfd9d2af64830208356ce4ef8b165a6ef15bbff7460b35c3a"
|
||||||
|
|
||||||
|
http_archive(
|
||||||
|
name = "rules_jvm_external",
|
||||||
|
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
|
||||||
|
sha256 = RULES_JVM_EXTERNAL_SHA,
|
||||||
|
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG,
|
||||||
)
|
)
|
||||||
|
|
||||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
|
load("@rules_jvm_external//:defs.bzl", "maven_install")
|
||||||
|
|
||||||
|
maven_install(
|
||||||
|
artifacts = ["junit:junit:4.12"],
|
||||||
|
repositories = ["https://repo1.maven.org/maven2"],
|
||||||
|
)
|
||||||
|
|
||||||
http_file(
|
http_file(
|
||||||
name = "openjdk_jni_h",
|
name = "openjdk_jni_h",
|
||||||
|
@ -7,7 +7,7 @@ licenses(["notice"]) # MIT
|
|||||||
|
|
||||||
TEST_DEPS = [
|
TEST_DEPS = [
|
||||||
":dec",
|
":dec",
|
||||||
"@junit_junit//jar",
|
"@maven//:junit_junit",
|
||||||
]
|
]
|
||||||
|
|
||||||
java_library(
|
java_library(
|
||||||
|
@ -30,7 +30,7 @@ java_library(
|
|||||||
"//org/brotli/dec",
|
"//org/brotli/dec",
|
||||||
"//org/brotli/integration:brotli_jni_test_base",
|
"//org/brotli/integration:brotli_jni_test_base",
|
||||||
"//org/brotli/wrapper/dec",
|
"//org/brotli/wrapper/dec",
|
||||||
"@junit_junit//jar",
|
"@maven//:junit_junit",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ java_library(
|
|||||||
":dec",
|
":dec",
|
||||||
"//org/brotli/integration:brotli_jni_test_base",
|
"//org/brotli/integration:brotli_jni_test_base",
|
||||||
"//org/brotli/integration:bundle_helper",
|
"//org/brotli/integration:bundle_helper",
|
||||||
"@junit_junit//jar",
|
"@maven//:junit_junit",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ java_library(
|
|||||||
"//org/brotli/integration:brotli_jni_test_base",
|
"//org/brotli/integration:brotli_jni_test_base",
|
||||||
"//org/brotli/integration:bundle_helper",
|
"//org/brotli/integration:bundle_helper",
|
||||||
"//org/brotli/wrapper/dec",
|
"//org/brotli/wrapper/dec",
|
||||||
"@junit_junit//jar",
|
"@maven//:junit_junit",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ case "$1" in
|
|||||||
"install")
|
"install")
|
||||||
case "${TRAVIS_OS_NAME}" in
|
case "${TRAVIS_OS_NAME}" in
|
||||||
"osx")
|
"osx")
|
||||||
brew update
|
brew update >/dev/null
|
||||||
brew install binutils
|
brew install binutils
|
||||||
|
|
||||||
case "${CC}" in
|
case "${CC}" in
|
||||||
@ -17,8 +17,8 @@ case "$1" in
|
|||||||
|
|
||||||
case "${BUILD_SYSTEM}" in
|
case "${BUILD_SYSTEM}" in
|
||||||
"bazel")
|
"bazel")
|
||||||
|
brew cask install homebrew/cask-versions/adoptopenjdk8
|
||||||
brew install bazel
|
brew install bazel
|
||||||
brew upgrade python
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
@ -54,7 +54,7 @@ install:
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
- IF "%BUILD_SYSTEM%"=="bazel" (
|
- IF "%BUILD_SYSTEM%"=="bazel" (
|
||||||
appveyor DownloadFile https://github.com/bazelbuild/bazel/releases/download/0.18.0/bazel-0.18.0-windows-x86_64.exe -FileName bazel.exe
|
appveyor DownloadFile https://github.com/bazelbuild/bazel/releases/download/2.2.0/bazel-2.2.0-windows-x86_64.exe -FileName bazel.exe
|
||||||
)
|
)
|
||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
|
Loading…
Reference in New Issue
Block a user