Skip to content

hex.pm release #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
4b5936e
Metadata for Hex.pm
mremond Jan 22, 2016
6ee3570
Metadata ready for hex.pm release
mremond Jan 22, 2016
3764fd1
Merge pull request #2 from alexeyr/master
mremond Jan 23, 2017
1a0b5a9
Make it compile correctly on rebar3
prefiks Nov 6, 2017
c3d6b25
Include rebar.config.script in hex.pm package
prefiks Jan 30, 2018
cedc45a
Bump version
prefiks Jan 30, 2018
c315853
Remove erl_interface include, it's not required and causes problems o…
prefiks May 22, 2020
1fec20e
Bump version to 1.1.7
prefiks Jun 3, 2020
118c5f0
Update Travis setup to compile with up to 23.0. Update Rebar
badlop Jun 16, 2020
58155dc
Merge pull request #3 from badlop/fixtravis
mremond Jul 20, 2020
5d23562
Bump version to 1.1.8
badlop Jul 20, 2020
0d41305
Handle rebar3 version strings such as "3.14.1+build.4750.refd11ceb4f"
brigadier Sep 17, 2020
647c172
Merge pull request #5 from brigadier/patch-1
badlop Nov 11, 2020
8cd942c
Release v1.1.5
prefiks Dec 8, 2020
093dede
Fix compilation on macos 11.0
prefiks Dec 10, 2020
67072ab
Release v1.1.6
prefiks Dec 10, 2020
3521791
Update version and remove deprecated attribute
mremond Dec 10, 2020
bcfbeaa
Do not link to sqlite3 on macos
nosnilmot Sep 23, 2020
c913bf6
Merge pull request #6 from nosnilmot/darwin-nolink
prefiks Dec 23, 2020
b2175f8
Release 1.1.10
prefiks Jan 27, 2021
d932413
Use headers from amalagamation on darwin instead of system one
prefiks Jan 28, 2021
cc13971
Release 1.1.11
prefiks Jan 28, 2021
a43f2cc
Fix wrong gen_server spec detected by Dialyzer
badlop Feb 23, 2021
833132c
Add Github Action to release to hex.pm when tagging
badlop Mar 24, 2021
ca499cf
Release 1.1.12
badlop Mar 24, 2021
45151ed
Parametrize the rebar binary (processone/fast_tls#51)
badlop Jun 15, 2021
1f02d36
Switch from Travis to Github Actions
badlop Jun 17, 2021
e7d29e4
Fix badge URL
badlop Jun 17, 2021
1970508
Use COVERALLS environment variable to detect when coveralls is required
badlop Jun 17, 2021
fd3f763
No need to set src_dirs, this way test/ isn't included in cover reports
badlop Jun 17, 2021
fb41900
Update .gitignore
badlop Jun 30, 2021
9c49cf6
Add support to send C coverage. Don't cache. Move hex plugin to Action
badlop Jun 30, 2021
f59df9c
Add configure
badlop Jun 30, 2021
9ff21eb
Fix typo in gcov compilation code
badlop Jun 30, 2021
a68c21f
Release 1.1.13
prefiks Jul 21, 2021
9e93d0c
Remove rebar binary, it's better to use system one
prefiks Jan 11, 2023
b3fe7e8
Fix hex-release action
prefiks Jan 17, 2023
0fc8ec9
Release 1.1.14
prefiks Jan 17, 2023
15eaabe
Added foreign_key table constraint
Jan 26, 2024
5703b04
Added additional string to configure update/delete actions
Jan 26, 2024
43f8e4a
Merge pull request #13 from Xelynega/master
prefiks Jan 26, 2024
a76666e
CI: Test with oldest Erlang, recent stable, and the newest available
badlop Feb 24, 2024
70b3bca
Eunit: Don't wait for message
badlop Feb 26, 2024
9e859a8
EUnit: Starting in Erlang/OTP 27.0-rc1, 0.0 and -0.0 are longer exact…
badlop Feb 26, 2024
61294ce
CI: Test also with Erlang/OTP 27
badlop Feb 26, 2024
2cce228
Use ubuntu-22.04, add erlang:26 container as that ubuntu doesn't incl…
badlop Feb 26, 2024
1d3bc59
CI: Use checkout v3 for erlang < 20.3, and v4 for newer ones
badlop Feb 26, 2024
e657016
CI: For cover use setup-beam because container breaks pip
badlop Feb 26, 2024
39bb2a3
CI: Install rebar3 in ubuntu-22.04 when using setup-beam
badlop Feb 26, 2024
e82ac70
CI: Use checkout v4 also in Cover job
badlop Feb 26, 2024
fd5140f
Release 1.1.15
prefiks Jun 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

on: [push, pull_request]

jobs:

tests:
name: Tests
strategy:
fail-fast: false
matrix:
otp: ['19.3', '25.3', 26, 27]
runs-on: ubuntu-22.04
container:
image: erlang:${{ matrix.otp }}
steps:
- uses: actions/checkout@v3
if: matrix.otp < '20.3'
- uses: actions/checkout@v4
if: matrix.otp >= '20.3'
- run: rebar3 compile
- run: rebar3 xref
- run: rebar3 dialyzer
- run: rebar3 eunit -v

cover:
name: Cover
needs: [tests]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: 26
rebar3-version: 3
- run: ./configure --enable-gcov
- run: rebar3 compile
- run: rebar3 eunit -v
- run: pip install --user cpp-coveralls
- run: cpp-coveralls -b `pwd` --verbose --gcov-options '\-lp' --dump c.json
- name: Send to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
ADDJSONFILE=c.json COVERALLS=true rebar3 as test coveralls send
curl -v -k https://coveralls.io/webhook \
--header "Content-Type: application/json" \
--data '{"repo_name":"$GITHUB_REPOSITORY",
"repo_token":"$GITHUB_TOKEN",
"payload":{"build_num":$GITHUB_RUN_ID,
"status":"done"}}'
25 changes: 25 additions & 0 deletions .github/workflows/hexpm-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Hex

on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-22.04
container:
image: erlang:26
steps:
- name: Check out
uses: actions/checkout@v4

- name: Setup rebar3 hex
run: |
mkdir -p ~/.config/rebar3/
echo "{plugins, [rebar3_hex]}." > ~/.config/rebar3/rebar.config

- name: Publish to hex.pm
run: rebar3 hex publish --repo hexpm --yes || head rebar3.crashdump
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
41 changes: 16 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
# backups and VCS
.svn
*/.svn
*~
*.swo
*.swp
*.orig
# build outputs
.rebar/
rebar.cross_compile.config
config.tmp
*.pdb
*.beam
ebin/
priv/
.eunit/
doc/
sqlite3.plt
TEST*.xml
*.db
*.exp
*.lib
*.obj
*.dll
*.o
*.so
# crash dump
erl_crash.dump
.eunit
.rebar
_build
autom4te.cache
c_src/*.d
c_src/*.gcda
c_src/*.gcno
c_src/*.o
config.log
config.status
deps
ebin
priv
rebar.lock
vars.config
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

13 changes: 9 additions & 4 deletions GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
REBAR=./rebar
REBAR ?= ./rebar
REBAR_DEBUG=$(REBAR) -C rebar.debug.config
REBAR_COMPILE=$(REBAR) get-deps compile
REBAR_DEBUG_COMPILE=$(REBAR_DEBUG) get-deps compile
Expand All @@ -11,16 +11,21 @@ debug: config_debug
$(REBAR_DEBUG_COMPILE)

compile:
$(REBAR_COMPILE)
$(REBAR) get-deps
$(REBAR) compile

test:
$(REBAR_COMPILE) eunit
$(REBAR) get-deps
$(REBAR) compile
$(REBAR) eunit

clean:
-rm -rf deps ebin priv/*.so doc/* .eunit/* c_src/*.o config.tmp

docs:
$(REBAR_COMPILE) doc
$(REBAR) get-deps
$(REBAR) compile
$(REBAR) doc

static: config_debug
$(REBAR_DEBUG_COMPILE)
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Erlang wrapper for SQLite3

[![CI](https://github.com/processone/erlang-sqlite3/actions/workflows/ci.yml/badge.svg)](https://github.com/processone/erlang-sqlite3/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/processone/erlang-sqlite3/badge.svg?branch=master&service=github)](https://coveralls.io/github/processone/erlang-sqlite3?branch=master)
[![Hex version](https://img.shields.io/hexpm/v/sqlite3.svg "Hex version")](https://hex.pm/packages/sqlite3)

This library allows you to work with SQLite3 databases from Erlang.

It is compatible with Windows and Linux, and should probably work on other OSes as well.

[![Build Status](https://travis-ci.org/alexeyr/erlang-sqlite3.svg?branch=master)](https://travis-ci.org/alexeyr/erlang-sqlite3)

See also [esqlite](https://github.com/mmzeeman/esqlite) for an alternative library.

## Requirements
Expand Down
4 changes: 0 additions & 4 deletions build_port_win32.bat

This file was deleted.

4 changes: 0 additions & 4 deletions build_port_win64.bat

This file was deleted.

1 change: 0 additions & 1 deletion c_src/sqlite3_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#define ERLANG_SQLITE3_LOAD_EXTENSION // comment out if SQLite is built with SQLITE_OMIT_LOAD_EXTENSION

#include <erl_driver.h>
#include <erl_interface.h>
#include <ei.h>
#include <sqlite3.h>
#include <stdio.h>
Expand Down
Loading