Skip to content

Commit

Permalink
Release 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
daviesrob committed Mar 17, 2021
2 parents a7a90fe + 7186959 commit bd133ac
Show file tree
Hide file tree
Showing 105 changed files with 9,241 additions and 4,438 deletions.
6 changes: 5 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ skip_tags: true
# - docs/*
# - '**/*.html'

# Appveyor Windows images are based on Visual studio version
image: Visual Studio 2019

# We use Mingw/Msys, so use pacman for installs
install:
- set HOME=.
Expand All @@ -30,7 +33,8 @@ build_script:
- set HOME=.
- set MSYSTEM=MINGW64
- set PATH=C:/msys64/usr/bin;C:/msys64/mingw64/bin;%PATH%
- "sh -lc \"autoheader && autoconf && ./configure --enable-werror CFLAGS='-g -O3' && make -j2\""
- git submodule update --init --recursive
- "sh -lc \"autoreconf -i && ./configure --enable-werror CFLAGS='-g -O3' && make -j2\""

#build_script:
# - make
Expand Down
167 changes: 167 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
# Note we have a maximum of 16 CPUs available, so adjust our
# builds so we can start all concurrently without needing to schedule.

# Sadly though there is still a finite limit to macOS of one instance.
# Can we cull our Mac test to just one instance?

timeout_in: 20m

#--------------------------------------------------
# Template: build libdeflate dependency

libdeflate_template: &LIBDEFLATE
libdeflate_script: |
if test "x$USE_LIBDEFLATE" == "xyes"; then
pushd "$HOME"
git clone --depth 1 https://github.com/ebiggers/libdeflate.git
pushd libdeflate
make -j 4 CFLAGS='-fPIC -O3' libdeflate.a
popd
popd
fi
#--------------------------------------------------
# Template: compile and test

compile_template: &COMPILE
compile_script: |
git submodule update --init --recursive
if test "x$USE_LIBDEFLATE" = "xyes"; then
CONFIG_OPTS='CPPFLAGS="-I$HOME/libdeflate" LDFLAGS="$LDFLAGS -L$HOME/libdeflate" --with-libdeflate'
else
CONFIG_OPTS='--without-libdeflate'
fi
if test "$USE_CONFIG" = "yes"; then
MAKE_OPTS=
autoreconf -i
eval ./configure --enable-plugins --enable-werror $CONFIG_OPTS CFLAGS=\"-g -O3 $CFLAGS\" || \
( cat config.log; false )
else
MAKE_OPTS=-e
fi
if test "x$DO_MAINTAINER_CHECKS" = "xyes"; then
make maintainer-check
fi
make -j 4 $MAKE_OPTS
test_template: &TEST
test_script: |
make test-shlib-exports
make test
#--------------------------------------------------
# Task: linux builds.

# Debian + latest GCC
gcc_task:
name: debian-gcc
container:
image: gcc:latest
cpu: 2
memory: 1G

environment:
LC_ALL: C
CIRRUS_CLONE_DEPTH: 1

matrix:
- environment:
DO_MAINTAINER_CHECKS: yes
USE_CONFIG: no
- environment:
USE_CONFIG: yes
CFLAGS: -std=c99 -pedantic
USE_LIBDEFLATE: yes

<< : *LIBDEFLATE
<< : *COMPILE
<< : *TEST


# Ubuntu + Clang
ubuntu_task:
name: ubuntu-clang
container:
#image: ubuntu:latest # use << : *LIBDEFLATE
image: ubuntu:devel
cpu: 2
memory: 1G

environment:
CC: clang
LC_ALL: C
CIRRUS_CLONE_DEPTH: 1

matrix:
- environment:
USE_CONFIG: yes
- environment:
USE_CONFIG: yes
CFLAGS: -g -Wall -O3 -fsanitize=address
LDFLAGS: -fsanitize=address
USE_LIBDEFLATE: yes

# NB: we could consider building a docker image with these
# preinstalled and specifying that instead, to speed up testing.
install_script: |
apt-get update
apt-get install -y --no-install-suggests --no-install-recommends \
ca-certificates clang libc-dev make git autoconf automake \
zlib1g-dev libbz2-dev liblzma-dev libcurl4-gnutls-dev libssl-dev \
libdeflate-dev
<< : *COMPILE
<< : *TEST


# CentOS
centos_task:
name: centos-gcc
container:
image: centos:latest
cpu: 2
memory: 1G

environment:
LC_ALL: C
CIRRUS_CLONE_DEPTH: 1
USE_CONFIG: yes

# NB: we could consider building a docker image with these
# preinstalled and specifying that instead, to speed up testing.
install_script: |
yum install -y autoconf automake make gcc perl-Data-Dumper zlib-devel \
bzip2 bzip2-devel xz-devel curl-devel openssl-devel ncurses-devel \
diffutils git
<< : *COMPILE
<< : *TEST

#--------------------------------------------------
# Task: macOS builds

macosx_task:
name: macosx + clang
osx_instance:
image: catalina-base

environment:
CC: clang
LC_ALL: C
CIRRUS_CLONE_DEPTH: 1

matrix:
- environment:
USE_CONFIG: no
- environment:
USE_CONFIG: yes
USE_LIBDEFLATE: yes

package_install_script:
- HOMEBREW_NO_AUTO_UPDATE=1 brew install autoconf automake libtool xz git

<< : *LIBDEFLATE
<< : *COMPILE
<< : *TEST

6 changes: 5 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
# Omit these files from release tarballs.
/.appveyor.yml export-ignore
.git* export-ignore
/.travis.yml export-ignore
/.cirrus.yml export-ignore
README.md export-ignore

# Remove the text attribute from reference files, so that git doesn't convert
# line separators on Windows machines. It causes the index files to become out
# of sync with the fasta files.
*.fa* -text

# Remove the text attribute from index_dos.sam, so that the line separators
# for the test file don't get converted into Unix format.
test/index_dos.sam -text
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@
*.dll.a
*.pc.tmp
*-uninstalled.pc
config_vars.h
/version.h

autom4te.cache
config.cache
config.guess
config.h
config.h.in
config.log
config.mk
config.status
config.sub
configure
install-sh

hfile_*.bundle
hfile_*.cygdll
Expand All @@ -25,6 +29,7 @@ hfile_*.so

hts-object-files
htslib_static.mk
htscodecs.mk

cyg*.dll
lib*.a
Expand All @@ -51,7 +56,9 @@ shlib-exports-*.txt
/test/test-bcf-sr
/test/test-bcf-translate
/test/test_bgzf
/test/test_expr
/test/test_index
/test/test_introspection
/test/test_kfunc
/test/test_kstring
/test/test-parse-reg
Expand Down
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "htscodecs"]
path = htscodecs
url = https://github.com/samtools/htscodecs.git
fetchRecurseSubmodules = true
108 changes: 0 additions & 108 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit bd133ac

Please sign in to comment.