mirror of
https://github.com/QuasarApp/zip.git
synced 2025-05-02 07:09:35 +00:00
remove travis and appveyor (#116)
This commit is contained in:
parent
998d700f31
commit
b8fac51d42
48
.github/workflows/build.yml
vendored
48
.github/workflows/build.yml
vendored
@ -2,47 +2,45 @@ name: build
|
|||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
env:
|
|
||||||
BUILD_TYPE: Debug
|
|
||||||
INSTALL_PREFIX: _install
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-ubuntu:
|
ubuntu:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: cmake -DENABLE_COVERAGE=ON -DCMAKE_BUILD_TYPE=$ENV{BUILD_TYPE} -DSANITIZE_ADDRESS=On -DCMAKE_INSTALL_PREFIX=$ENV{INSTALL_PREFIX} .
|
run: cmake -DENABLE_COVERAGE=ON -DSANITIZE_ADDRESS=On .
|
||||||
- name: Build
|
|
||||||
run: cmake --build .
|
|
||||||
- name: Test
|
|
||||||
run: ctest -VV
|
|
||||||
|
|
||||||
- name: CodeCov
|
|
||||||
run: bash <(curl -s https://codecov.io/bash)
|
|
||||||
|
|
||||||
|
|
||||||
build-macos:
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Configure
|
|
||||||
run: cmake -DCMAKE_BUILD_TYPE=$ENV{BUILD_TYPE} -DSANITIZE_ADDRESS=On -DCMAKE_INSTALL_PREFIX=$ENV{INSTALL_PREFIX} .
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build .
|
run: cmake --build .
|
||||||
- name: Test
|
- name: Test
|
||||||
run: ASAN_OPTIONS=detect_leaks=0 LSAN_OPTIONS=verbosity=1:log_threads=1 ctest -VV
|
run: ASAN_OPTIONS=detect_leaks=0 LSAN_OPTIONS=verbosity=1:log_threads=1 ctest -VV
|
||||||
|
|
||||||
|
- name: CodeCov
|
||||||
|
run: bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
build-windows:
|
|
||||||
runs-on: windows-latest
|
macos:
|
||||||
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: cmake -G"Visual Studio 16 2019" .
|
run: |
|
||||||
|
pip3 install scan-build
|
||||||
|
scan-build cmake -DSANITIZE_ADDRESS=On .
|
||||||
|
- name: Build
|
||||||
|
run: scan-build -v --exclude test -enable-checker security.FloatLoopCounter -enable-checker security.insecureAPI.UncheckedReturn --status-bugs cmake --build .
|
||||||
|
- name: Test
|
||||||
|
run: ctest -VV
|
||||||
|
|
||||||
|
|
||||||
|
windows:
|
||||||
|
runs-on: "windows-latest"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Configure
|
||||||
|
run: cmake .
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build . --config "Debug"
|
run: cmake --build . --config "Debug"
|
||||||
- name: Test
|
- name: Test
|
||||||
|
18
.travis.sh
18
.travis.sh
@ -1,18 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Build script for travis-ci.org builds.
|
|
||||||
#
|
|
||||||
if [ $ANALYZE = "true" ] && [ "$CC" = "clang" ]; then
|
|
||||||
# scan-build -h
|
|
||||||
scan-build cmake -G "Unix Makefiles"
|
|
||||||
scan-build -enable-checker security.FloatLoopCounter \
|
|
||||||
-enable-checker security.insecureAPI.UncheckedReturn \
|
|
||||||
--status-bugs -v \
|
|
||||||
make -j 8 \
|
|
||||||
make -j 8 test
|
|
||||||
else
|
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug -DSANITIZE_ADDRESS=On -DCMAKE_INSTALL_PREFIX=_install
|
|
||||||
make -j 8
|
|
||||||
make install
|
|
||||||
ASAN_OPTIONS=detect_leaks=0 LSAN_OPTIONS=verbosity=1:log_threads=1 ctest -V
|
|
||||||
fi
|
|
22
.travis.yml
22
.travis.yml
@ -1,22 +0,0 @@
|
|||||||
language: c
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages: &1
|
|
||||||
- lcov
|
|
||||||
# Compiler selection
|
|
||||||
compiler:
|
|
||||||
- clang
|
|
||||||
- gcc
|
|
||||||
env:
|
|
||||||
- ANALYZE=false
|
|
||||||
- ANALYZE=true
|
|
||||||
# Build steps
|
|
||||||
script:
|
|
||||||
- ./.travis.sh
|
|
||||||
after_success:
|
|
||||||
# Creating report
|
|
||||||
- cmake -DENABLE_COVERAGE=ON
|
|
||||||
- make
|
|
||||||
- make test
|
|
||||||
# Uploading report to CodeCov
|
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
|
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0)
|
|||||||
|
|
||||||
project(zip
|
project(zip
|
||||||
LANGUAGES C
|
LANGUAGES C
|
||||||
VERSION "0.1.16")
|
VERSION "0.1.17")
|
||||||
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
|
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
|
||||||
|
|
||||||
option(CMAKE_DISABLE_TESTING "Disable test creation" OFF)
|
option(CMAKE_DISABLE_TESTING "Disable test creation" OFF)
|
||||||
|
14
appveyor.yml
14
appveyor.yml
@ -1,14 +0,0 @@
|
|||||||
version: zip-0.1.15.{build}
|
|
||||||
build_script:
|
|
||||||
- cmd: >-
|
|
||||||
cd c:\projects\zip
|
|
||||||
|
|
||||||
mkdir build
|
|
||||||
|
|
||||||
cd build
|
|
||||||
|
|
||||||
cmake -G"Visual Studio 14" -DCMAKE_BUILD_TYPE=Debug ..
|
|
||||||
|
|
||||||
cmake --build . --config %CMAKE_BUILD_TYPE%
|
|
||||||
|
|
||||||
ctest --verbose -C "Debug"
|
|
@ -808,7 +808,8 @@ int zip_create(const char *zipname, const char *filenames[], size_t len) {
|
|||||||
|
|
||||||
if (MZ_FILE_STAT(name, &file_stat) != 0) {
|
if (MZ_FILE_STAT(name, &file_stat) != 0) {
|
||||||
// problem getting information - check errno
|
// problem getting information - check errno
|
||||||
return -1;
|
status = -1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((file_stat.st_mode & 0200) == 0) {
|
if ((file_stat.st_mode & 0200) == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user