This repository was archived by the owner on Jul 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +92
-0
lines changed
Expand file tree Collapse file tree 4 files changed +92
-0
lines changed Original file line number Diff line number Diff line change 1+ # Without this "Update next build number or change version format."
2+ version : " {build}"
3+
4+ environment :
5+ global :
6+ BAZEL_ROOT : c:\bazel_root\
7+ INSTALL_CACHE : c:\install_cache\
8+ APPVEYOR_SAVE_CACHE_ON_ERROR : true
9+ matrix :
10+ - APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
11+
12+ install :
13+ - set PATH=%PATH%;%INSTALL_CACHE%
14+ - cmd : tools\appveyor\install.bat
15+
16+ build_script :
17+ - cmd : tools\appveyor\build.bat
18+
19+ test_script :
20+ - cmd : tools\appveyor\test.bat
Original file line number Diff line number Diff line change 1+ REM Copyright 2018, OpenCensus Authors
2+ REM
3+ REM Licensed under the Apache License, Version 2.0 (the "License");
4+ REM you may not use this file except in compliance with the License.
5+ REM You may obtain a copy of the License at
6+ REM
7+ REM http://www.apache.org/licenses/LICENSE-2.0
8+ REM
9+ REM Unless required by applicable law or agreed to in writing, software
10+ REM distributed under the License is distributed on an "AS IS" BASIS,
11+ REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ REM See the License for the specific language governing permissions and
13+ REM limitations under the License.
14+
15+ REM TODO: Get everything to build on Windows:
16+ REM bazel build //...
17+
18+ REM TODO: Remove --output_user_root after https://github.com/bazelbuild/bazel/issues/4149 is fixed.
19+ bazel --output_user_root=c:/t/ build //opencensus/trace
20+
21+ IF %ERRORLEVEL% NEQ 0 EXIT /b %ERRORLEVEL%
22+ EXIT /b 0
Original file line number Diff line number Diff line change 1+ REM Copyright 2018, OpenCensus Authors
2+ REM
3+ REM Licensed under the Apache License, Version 2.0 (the "License");
4+ REM you may not use this file except in compliance with the License.
5+ REM You may obtain a copy of the License at
6+ REM
7+ REM http://www.apache.org/licenses/LICENSE-2.0
8+ REM
9+ REM Unless required by applicable law or agreed to in writing, software
10+ REM distributed under the License is distributed on an "AS IS" BASIS,
11+ REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ REM See the License for the specific language governing permissions and
13+ REM limitations under the License.
14+
15+ REM This script is based on:
16+ REM https://github.com/google/xrtl/blob/master/tools/ci/appveyor/install.bat
17+
18+ IF NOT EXIST %INSTALL_CACHE% (MKDIR %INSTALL_CACHE% )
19+
20+ REM Download bazel into install cache, which is on the path.
21+ IF NOT EXIST %INSTALL_CACHE% \bazel.exe (
22+ appveyor DownloadFile https://github.com/bazelbuild/bazel/releases/download/0.10.1/bazel-0.10.1-without-jdk-windows-x86_64.exe -FileName %INSTALL_CACHE% \bazel.exe
23+ )
24+
25+ REM Temporary directory for bazel.
26+ REM TODO: Remove this after https://github.com/bazelbuild/bazel/issues/4149 is fixed.
27+ IF NOT EXIST C:\T (MKDIR C:\T)
Original file line number Diff line number Diff line change 1+ REM Copyright 2018, OpenCensus Authors
2+ REM
3+ REM Licensed under the Apache License, Version 2.0 (the "License");
4+ REM you may not use this file except in compliance with the License.
5+ REM You may obtain a copy of the License at
6+ REM
7+ REM http://www.apache.org/licenses/LICENSE-2.0
8+ REM
9+ REM Unless required by applicable law or agreed to in writing, software
10+ REM distributed under the License is distributed on an "AS IS" BASIS,
11+ REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ REM See the License for the specific language governing permissions and
13+ REM limitations under the License.
14+
15+ REM TODO: Make all tests pass on Windows:
16+ REM bazel test //...
17+
18+ REM TODO: Remove --output_user_root after https://github.com/bazelbuild/bazel/issues/4149 is fixed.
19+ REM bazel --output_user_root=c:/t/ test //opencensus/trace:all
20+ echo TODO: Make all tests pass on Windows.
21+
22+ IF %ERRORLEVEL% NEQ 0 EXIT /b %ERRORLEVEL%
23+ EXIT /b 0
You can’t perform that action at this time.
0 commit comments