appveyor.yml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. image:
  2. - Ubuntu2204
  3. - Visual Studio 2017
  4. - Visual Studio 2019
  5. - Visual Studio 2022
  6. configuration:
  7. - Debug
  8. - Release
  9. environment:
  10. PYTHON: "C:\\Python38-x64"
  11. PY_SCRIPTS: "C:\\Python38-x64\\Scripts"
  12. APPVEYOR_YML_DISABLE_PS_LINUX: true
  13. matrix:
  14. - SHARED: True
  15. - SHARED: False
  16. platform:
  17. - x64
  18. stack: python 3.11
  19. for:
  20. -
  21. install:
  22. - cmd: set PATH=%PY_SCRIPTS%;%PATH%
  23. - cmd: echo %PATH%
  24. - cmd: "%PYTHON%\\python.exe -m pip install conan cmake"
  25. - sh: python3 -m pip install conan cmake
  26. - sh: if [ "$CONFIGURATION $SHARED" == "Debug False" ]; then sudo apt-get update && sudo apt-get install -y lcov curl; fi
  27. build_script:
  28. - cmake --version
  29. - conan profile detect
  30. test_script:
  31. - cmd: cmake -E env ROTOR_BUILD_EXAMPLES=ON CXXFLAGS="/permissive- /wd4251 /W4 /w14640 /wd4068" conan create . -s build_type=%CONFIGURATION% -o shared=%SHARED% -s compiler.cppstd=17 -c tools.build:skip_test=False -o enable_ev=True -o boost/*:without_chrono=True -o boost/*:without_container=True -o boost/*:without_context=True -o boost/*:without_contract=True -o boost/*:without_coroutine=True -o boost/*:without_exception=True -o boost/*:without_fiber=True -o boost/*:without_graph=True -o boost/*:without_graph_parallel=True -o boost/*:without_iostreams=True -o boost/*:without_json=True -o boost/*:without_locale=True -o boost/*:without_log=True -o boost/*:without_math=True -o boost/*:without_mpi=True -o boost/*:without_nowide=True -o boost/*:without_python=True -o boost/*:without_random=True -o boost/*:without_serialization=True -o boost/*:without_stacktrace=True -o boost/*:without_test=True -o boost/*:without_thread=True -o boost/*:without_timer=True -o boost/*:without_type_erasure=True -o boost/*:without_url=True -o boost/*:without_wave=True --version 0.26 --build=missing
  32. - sh: env
  33. - sh: if [ "$CONFIGURATION $SHARED" == "Debug False" ]; then export COVERAGE_FLAGS="-fprofile-arcs -ftest-coverage --coverage"; else export COVERAGE_FLAGS=""; fi
  34. - sh: echo COVERAGE_FLAGS=$COVERAGE_FLAGS
  35. - sh: cmake -E env ROTOR_BUILD_EXAMPLES=ON CXXFLAGS="$COVERAGE_FLAGS -Wall -Wextra -Wno-unknown-pragmas -Wnon-virtual-dtor -pedantic -Wcast-align -Woverloaded-virtual -Woverloaded-virtual -Wlogical-op -Wnull-dereference -Wuseless-cast -Wformat=2 -Wduplicated-cond -Wsign-conversion -Wmisleading-indentation" conan create . -s build_type=$CONFIGURATION -o shared=$SHARED -s compiler.cppstd=17 -c tools.build:skip_test=False -o enable_ev=True -o boost/*:without_chrono=True -o boost/*:without_container=True -o boost/*:without_context=True -o boost/*:without_contract=True -o boost/*:without_coroutine=True -o boost/*:without_exception=True -o boost/*:without_fiber=True -o boost/*:without_graph=True -o boost/*:without_graph_parallel=True -o boost/*:without_iostreams=True -o boost/*:without_json=True -o boost/*:without_locale=True -o boost/*:without_log=True -o boost/*:without_math=True -o boost/*:without_mpi=True -o boost/*:without_nowide=True -o boost/*:without_python=True -o boost/*:without_random=True -o boost/*:without_serialization=True -o boost/*:without_stacktrace=True -o boost/*:without_test=True -o boost/*:without_thread=True -o boost/*:without_timer=True -o boost/*:without_type_erasure=True -o boost/*:without_url=True -o boost/*:without_wave=True --version 0.26 --build=missing
  36. after_test:
  37. - sh: if [ "$CONFIGURATION $SHARED" == "Debug False" ]; then lcov --directory . --capture --output-file coverage.info && lcov --remove coverage.info '*/tests/*' '*/examples/*' '/usr/*' --output-file coverage.info.cleaned && rm coverage.info && genhtml -o coverage coverage.info.cleaned && bash <(curl -s https://codecov.io/bash) -X gcov; fi