Skip to content

Commit fa91409

Browse files
CI: speedup AppVeyor builds by ~30% (#3422)
AppVeyor build VMs should provide at least two cores. Parallelize builds and tests. In addition, enable output on failure and disable verbose test output.
1 parent c2054b9 commit fa91409

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

appveyor.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ before_build:
6666
- cmake . -G "%GENERATOR%" -A "%GENERATOR_PLATFORM%" -DCMAKE_CXX_FLAGS="%CXX_FLAGS%" -DCMAKE_IGNORE_PATH="C:/Program Files/Git/usr/bin" -DJSON_BuildTests=On "%CMAKE_OPTIONS%"
6767

6868
build_script:
69-
- cmake --build . --config "%configuration%"
69+
- cmake --build . --config "%configuration%" --parallel 2
7070

7171
test_script:
72-
- if "%configuration%"=="Release" ctest -C "%configuration%" -V -j
72+
- if "%configuration%"=="Release" ctest -C "%configuration%" --parallel 2 --output-on-failure
7373
# On Debug builds, skip test-unicode_all
7474
# as it is extremely slow to run and cause
7575
# occasional timeouts on AppVeyor.
7676
# More info: https://github.com/nlohmann/json/pull/1570
77-
- if "%configuration%"=="Debug" ctest --exclude-regex "test-unicode" -C "%configuration%" -V -j
77+
- if "%configuration%"=="Debug" ctest --exclude-regex "test-unicode" -C "%configuration%" --parallel 2 --output-on-failure
7878

7979
# only build PRs and commits to develop branch
8080
# (see https://help.appveyor.com/discussions/questions/55079-two-builds-per-commit-to-pull-request)

0 commit comments

Comments
 (0)