File | Lines added | Lines deleted |
---|---|---|
scripts/appveyor/config.yml | 34 | 0 |
scripts/appveyor/macos.sh | 12 | 0 |
scripts/appveyor/ubuntu.sh | 16 | 0 |
File scripts/appveyor/config.yml added (mode: 100644) (index 0000000..7ead8d4) | |||
1 | version: "{build}" | ||
2 | clone_depth: 1 | ||
3 | |||
4 | # "Ubuntu" (18.04) image fails with: | ||
5 | # | ||
6 | # new-gcovi invokes gcov | ||
7 | # ------------------------------------------------------------------------------ | ||
8 | # tests/sub_commands.cpp:1018 | ||
9 | # .............................................................................. | ||
10 | # | ||
11 | # tests/sub_commands.cpp:1048: FAILED: | ||
12 | # CHECK( build->getCoveredCount() > 0 ) | ||
13 | # with expansion: | ||
14 | # 0 > 0 | ||
15 | # | ||
16 | # Why? | ||
17 | |||
18 | environment: | ||
19 | matrix: | ||
20 | - BUILDENV: ubuntu | ||
21 | CC: ccache clang | ||
22 | APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004 | ||
23 | - BUILDENV: ubuntu | ||
24 | CC: ccache gcc | ||
25 | APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004 | ||
26 | - BUILDENV: macos | ||
27 | CC: ccache clang | ||
28 | APPVEYOR_BUILD_WORKER_IMAGE: macOS | ||
29 | |||
30 | cache: | ||
31 | - $HOME/.ccache | ||
32 | |||
33 | build_script: | ||
34 | - scripts/appveyor/$BUILDENV.sh |
File scripts/appveyor/macos.sh added (mode: 100755) (index 0000000..a52bb9e) | |||
1 | #!/bin/bash | ||
2 | |||
3 | set -xe | ||
4 | |||
5 | brew install boost ccache source-highlight libgit2 | ||
6 | |||
7 | # retards at Apple symlink `llvm-cov` as `gcov` breaking things | ||
8 | echo "TESTS := '~[new-gcovi-subcommand]'" > config.mk | ||
9 | |||
10 | # at least brew lacks tntnet | ||
11 | make -j4 NO-WEB=y | ||
12 | make -j4 check NO-WEB=y |
File scripts/appveyor/ubuntu.sh added (mode: 100755) (index 0000000..539851d) | |||
1 | #!/bin/bash | ||
2 | |||
3 | set -xe | ||
4 | |||
5 | sudo apt install -y libboost-filesystem-dev \ | ||
6 | libboost-iostreams-dev \ | ||
7 | libboost-program-options-dev \ | ||
8 | libboost-system-dev \ | ||
9 | libgit2-dev \ | ||
10 | libsource-highlight-dev \ | ||
11 | libsqlite3-dev \ | ||
12 | libtntnet-dev \ | ||
13 | ccache | ||
14 | |||
15 | make -j4 | ||
16 | make -j4 check |