-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
79 lines (49 loc) · 2.71 KB
/
.appveyor.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
76
77
78
79
version: 0.0.0.{build}
image:
- Ubuntu1804
- Ubuntu2004
- macOS
- Visual Studio 2017
- Visual Studio 2019
platform:
- x64
branches:
only:
- master
init:
- sh: >
set -e
mkdir -p /var/tmp/bazel
curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.7.5/bazelisk-$(uname -s | awk '{print tolower($0)}')-amd64 -o /var/tmp/bazel/bazelisk
chmod +x /var/tmp/bazel/bazelisk
- cmd: >
mkdir %TEMP%\bazel
curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.7.5/bazelisk-windows-amd64.exe -o %TEMP%\bazel\bazelisk.exe
cache:
- bazel_disk_cache
build_script:
- sh: >
set -e
/var/tmp/bazel/bazelisk build --disk_cache=bazel_disk_cache -c fastbuild --cxxopt -std=c++17 --host_cxxopt -std=c++17 --build_python_zip -- //...:all
/var/tmp/bazel/bazelisk build --disk_cache=bazel_disk_cache -c dbg --cxxopt -std=c++17 --host_cxxopt -std=c++17 --build_python_zip -- //...:all
/var/tmp/bazel/bazelisk build --disk_cache=bazel_disk_cache -c opt --cxxopt -std=c++17 --host_cxxopt -std=c++17 --build_python_zip -- //...:all
- cmd: >
%TEMP%\bazel\bazelisk.exe build --disk_cache=bazel_disk_cache --cxxopt /std:c++17 --host_cxxopt /std:c++17 --build_python_zip -c fastbuild //...:all
if %errorlevel% neq 0 exit /b %errorlevel%
%TEMP%\bazel\bazelisk.exe build --disk_cache=bazel_disk_cache --cxxopt /std:c++17 --host_cxxopt /std:c++17 --build_python_zip -c dbg //...:all
if %errorlevel% neq 0 exit /b %errorlevel%
%TEMP%\bazel\bazelisk.exe build --disk_cache=bazel_disk_cache --cxxopt /std:c++17 --host_cxxopt /std:c++17 --build_python_zip -c opt //...:all
if %errorlevel% neq 0 exit /b %errorlevel%
test_script:
- sh: >
set -e
/var/tmp/bazel/bazelisk test --disk_cache=bazel_disk_cache -c fastbuild --cxxopt -std=c++17 --host_cxxopt -std=c++17 --build_python_zip -- //...:all
/var/tmp/bazel/bazelisk test --disk_cache=bazel_disk_cache -c dbg --cxxopt -std=c++17 --host_cxxopt -std=c++17 --build_python_zip -- //...:all
/var/tmp/bazel/bazelisk test --disk_cache=bazel_disk_cache -c opt --cxxopt -std=c++17 --host_cxxopt -std=c++17 --build_python_zip -- //...:all
- cmd: >
%TEMP%\bazel\bazelisk.exe test --disk_cache=bazel_disk_cache --cxxopt /std:c++17 --host_cxxopt /std:c++17 --build_python_zip -c fastbuild //...:all
if %errorlevel% neq 0 exit /b %errorlevel%
%TEMP%\bazel\bazelisk.exe test --disk_cache=bazel_disk_cache --cxxopt /std:c++17 --host_cxxopt /std:c++17 --build_python_zip -c dbg //...:all
if %errorlevel% neq 0 exit /b %errorlevel%
%TEMP%\bazel\bazelisk.exe test --disk_cache=bazel_disk_cache --cxxopt /std:c++17 --host_cxxopt /std:c++17 --build_python_zip -c opt //...:all
if %errorlevel% neq 0 exit /b %errorlevel%