Skip to content

Commit

Permalink
remove travis and appveyor (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-- authored Jan 22, 2020
1 parent 998d700 commit b8fac51
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 78 deletions.
42 changes: 20 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,45 @@ name: build

on: [push]

env:
BUILD_TYPE: Debug
INSTALL_PREFIX: _install

jobs:
build-ubuntu:
runs-on: ubuntu-latest
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- 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
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-macos:
runs-on: macos-latest


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} .
run: |
pip3 install scan-build
scan-build cmake -DSANITIZE_ADDRESS=On .
- name: Build
run: cmake --build .
run: scan-build -v --exclude test -enable-checker security.FloatLoopCounter -enable-checker security.insecureAPI.UncheckedReturn --status-bugs cmake --build .
- name: Test
run: ASAN_OPTIONS=detect_leaks=0 LSAN_OPTIONS=verbosity=1:log_threads=1 ctest -VV
run: ctest -VV


build-windows:
runs-on: windows-latest
windows:
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v2

- name: Configure
run: cmake -G"Visual Studio 16 2019" .
run: cmake .
- name: Build
run: cmake --build . --config "Debug"
- name: Test
Expand Down
18 changes: 0 additions & 18 deletions .travis.sh

This file was deleted.

22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0)

project(zip
LANGUAGES C
VERSION "0.1.16")
VERSION "0.1.17")
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})

option(CMAKE_DISABLE_TESTING "Disable test creation" OFF)
Expand Down
14 changes: 0 additions & 14 deletions appveyor.yml

This file was deleted.

3 changes: 2 additions & 1 deletion src/zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,8 @@ int zip_create(const char *zipname, const char *filenames[], size_t len) {

if (MZ_FILE_STAT(name, &file_stat) != 0) {
// problem getting information - check errno
return -1;
status = -1;
break;
}

if ((file_stat.st_mode & 0200) == 0) {
Expand Down

0 comments on commit b8fac51

Please sign in to comment.