mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
cleanup: Remove redundant -DSODIUM_EXPORT
from definitions.
`-DSODIUM_STATIC` implies `-DSODIUM_EXPORT`.
This commit is contained in:
parent
0cef46ee91
commit
48dbcfebc0
14
.circleci/bazel-test
Executable file
14
.circleci/bazel-test
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eux
|
||||||
|
|
||||||
|
git submodule update --init --recursive
|
||||||
|
/src/workspace/tools/inject-repo c-toxcore
|
||||||
|
cd /src/workspace && bazel test -k \
|
||||||
|
--config=remote \
|
||||||
|
--build_tag_filters=-haskell \
|
||||||
|
--test_tag_filters=-haskell \
|
||||||
|
--remote_download_minimal \
|
||||||
|
-- \
|
||||||
|
//c-toxcore/... \
|
||||||
|
"$@"
|
|
@ -5,7 +5,10 @@ workflows:
|
||||||
version: 2
|
version: 2
|
||||||
program-analysis:
|
program-analysis:
|
||||||
jobs:
|
jobs:
|
||||||
# Dynamic analysis
|
# Dynamic analysis in the Bazel build
|
||||||
|
- bazel-asan
|
||||||
|
- bazel-tsan
|
||||||
|
# Dynamic analysis with CMake
|
||||||
- asan
|
- asan
|
||||||
- tsan
|
- tsan
|
||||||
- msan
|
- msan
|
||||||
|
@ -18,6 +21,28 @@ workflows:
|
||||||
- static-analysis
|
- static-analysis
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
bazel-asan:
|
||||||
|
working_directory: /tmp/cirrus-ci-build
|
||||||
|
docker:
|
||||||
|
- image: toxchat/toktok-stack:latest-asan
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run: .circleci/bazel-test
|
||||||
|
|
||||||
|
bazel-tsan:
|
||||||
|
working_directory: /tmp/cirrus-ci-build
|
||||||
|
docker:
|
||||||
|
- image: toxchat/toktok-stack:latest-tsan
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run: .circleci/bazel-test
|
||||||
|
-//c-toxcore/auto_tests:conference_av_test
|
||||||
|
-//c-toxcore/auto_tests:conference_test
|
||||||
|
-//c-toxcore/auto_tests:onion_test
|
||||||
|
-//c-toxcore/auto_tests:tox_many_test
|
||||||
|
|
||||||
asan:
|
asan:
|
||||||
working_directory: ~/work
|
working_directory: ~/work
|
||||||
docker:
|
docker:
|
||||||
|
|
62
.cirrus.yml
62
.cirrus.yml
|
@ -35,68 +35,6 @@ bazel-dbg_task:
|
||||||
//c-toxcore/...
|
//c-toxcore/...
|
||||||
-//c-toxcore/auto_tests:tcp_relay_test # TODO(robinlinden): Why does this pass locally but not in Cirrus?
|
-//c-toxcore/auto_tests:tcp_relay_test # TODO(robinlinden): Why does this pass locally but not in Cirrus?
|
||||||
|
|
||||||
bazel-asan_task:
|
|
||||||
container:
|
|
||||||
image: toxchat/toktok-stack:latest-asan
|
|
||||||
cpu: 2
|
|
||||||
memory: 4G
|
|
||||||
configure_script:
|
|
||||||
- git submodule update --init --recursive
|
|
||||||
- /src/workspace/tools/inject-repo c-toxcore
|
|
||||||
test_all_script:
|
|
||||||
- cd /src/workspace && bazel test -k
|
|
||||||
--remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST
|
|
||||||
--build_tag_filters=-haskell
|
|
||||||
--test_tag_filters=-haskell
|
|
||||||
--remote_download_minimal
|
|
||||||
--
|
|
||||||
//c-toxcore/...
|
|
||||||
-//c-toxcore/auto_tests:tcp_relay_test # TODO(robinlinden): Why does this pass locally but not in Cirrus?
|
|
||||||
|
|
||||||
# TODO(iphydf): Enable once this works properly.
|
|
||||||
#bazel-msan_task:
|
|
||||||
# container:
|
|
||||||
# image: toxchat/toktok-stack:latest-msan
|
|
||||||
# cpu: 2
|
|
||||||
# memory: 4G
|
|
||||||
# configure_script:
|
|
||||||
# - git submodule update --init --recursive
|
|
||||||
# - /src/workspace/tools/inject-repo c-toxcore
|
|
||||||
# test_all_script:
|
|
||||||
# - cd /src/workspace && bazel test -k
|
|
||||||
# --remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST
|
|
||||||
# --build_tag_filters=-haskell
|
|
||||||
# --test_tag_filters=-haskell
|
|
||||||
# --remote_download_minimal
|
|
||||||
# --
|
|
||||||
# //c-toxcore/...
|
|
||||||
# -//c-toxcore/auto_tests:tcp_relay_test # TODO(robinlinden): Why does this pass locally but not in Cirrus?
|
|
||||||
|
|
||||||
# TODO(iphydf): Fix test timeouts.
|
|
||||||
bazel-tsan_task:
|
|
||||||
container:
|
|
||||||
image: toxchat/toktok-stack:latest-tsan
|
|
||||||
cpu: 2
|
|
||||||
memory: 4G
|
|
||||||
configure_script:
|
|
||||||
- git submodule update --init --recursive
|
|
||||||
- /src/workspace/tools/inject-repo c-toxcore
|
|
||||||
test_all_script:
|
|
||||||
- cd /src/workspace && bazel test -k
|
|
||||||
--remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST
|
|
||||||
--build_tag_filters=-haskell
|
|
||||||
--test_tag_filters=-haskell
|
|
||||||
--remote_download_minimal
|
|
||||||
--
|
|
||||||
//c-toxcore/...
|
|
||||||
-//c-toxcore/auto_tests:conference_av_test
|
|
||||||
-//c-toxcore/auto_tests:conference_test
|
|
||||||
-//c-toxcore/auto_tests:file_transfer_test
|
|
||||||
-//c-toxcore/auto_tests:group_tcp_test
|
|
||||||
-//c-toxcore/auto_tests:onion_test
|
|
||||||
-//c-toxcore/auto_tests:tcp_relay_test
|
|
||||||
-//c-toxcore/auto_tests:tox_many_test
|
|
||||||
|
|
||||||
cimple_task:
|
cimple_task:
|
||||||
container:
|
container:
|
||||||
image: toxchat/toktok-stack:latest-release
|
image: toxchat/toktok-stack:latest-release
|
||||||
|
|
|
@ -156,7 +156,7 @@ endif()
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
option(MSVC_STATIC_SODIUM "Whether to link libsodium statically for MSVC" OFF)
|
option(MSVC_STATIC_SODIUM "Whether to link libsodium statically for MSVC" OFF)
|
||||||
if(MSVC_STATIC_SODIUM)
|
if(MSVC_STATIC_SODIUM)
|
||||||
add_definitions(-DSODIUM_STATIC=1 -DSODIUM_EXPORT)
|
add_definitions(-DSODIUM_STATIC=1)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user