Compare commits

..

5 commits

Author SHA1 Message Date
Jesse Gumm
108c796687 Remove travis and replace badge with GH actions
Some checks failed
qdate tests and dialyzer / OTP 23.x (push) Has been cancelled
qdate tests and dialyzer / OTP 24.x (push) Has been cancelled
qdate tests and dialyzer / OTP 25.x (push) Has been cancelled
qdate tests and dialyzer / OTP 26.x (push) Has been cancelled
qdate tests and dialyzer / OTP 27.x (push) Has been cancelled
2024-09-05 15:04:50 -05:00
Jesse Gumm
43c1f3412b Update to checkout@v4 2024-09-05 15:01:11 -05:00
Jesse Gumm
dc2184ea06 Remove reference to Postgres/MySQL (GH actions config was largely copied from sql_bridge) 2024-09-05 14:56:59 -05:00
Jesse Gumm
70bab7df95 Updates to fix dialyzer failing on otp 26+ 2024-09-05 14:55:48 -05:00
Jesse Gumm
06347e7f31 Add github actions workflow 2024-09-05 14:35:38 -05:00
7 changed files with 61 additions and 14 deletions

47
.github/workflows/tests-workflow.yml vendored Normal file
View file

@ -0,0 +1,47 @@
name: qdate tests and dialyzer
on: push
jobs:
linux:
name: OTP ${{ matrix.otp_version }}
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
include:
- os: ubuntu-22.04
otp_version: '27.x'
rebar3_version: "3.24.0"
- os: ubuntu-22.04
otp_version: '27.x'
rebar3_version: "3.23.0"
- os: ubuntu-22.04
otp_version: '26.x'
rebar3_version: "3.22.1"
- os: ubuntu-22.04
otp_version: '25.x'
rebar3_version: "3.22.1"
- os: ubuntu-22.04
otp_version: '24.x'
rebar3_version: "3.22.1"
- os: ubuntu-20.04
otp_version: '23.x'
rebar3_version: "3.19.0"
steps:
- name: Install OTP ${{matrix.otp_version}}
uses: erlef/setup-beam@v1
with:
version-type: loose
otp-version: ${{ matrix.otp_version}}
rebar3-version: ${{ matrix.rebar3_version}}
- name: Checkout qdate
uses: actions/checkout@v4
- name: Run Tests
run: make test
- name: Run Dialyzer
run: make dialyzer

1
.gitignore vendored
View file

@ -7,3 +7,4 @@ ebin/
.eunit/ .eunit/
.idea/ .idea/
_build _build
doc/

View file

@ -1,8 +0,0 @@
language: erlang
script: "make test"
otp_release:
- 23.0
- 22.3
- 21.3
- 20.3
before_script: "sudo apt-get --yes --force-yes install libpam-runtime python-software-properties software-properties-common"

View file

@ -1,3 +1,7 @@
## 0.7.3
* Remove the `?else` macro.
## 0.7.2 ## 0.7.2
* Update the error message when qdate is not started with some better instructions. * Update the error message when qdate is not started with some better instructions.

View file

@ -15,13 +15,12 @@ compile: rebar3
update: rebar3 update: rebar3
$(REBAR) update $(REBAR) update
test: compile test:
$(REBAR) eunit EUNIT=1 $(REBAR) compile
EUNIT=1 $(REBAR) eunit
dialyzer: compile dialyzer: compile
$(REBAR) dialyzer DIALYZER=1 $(REBAR) dialyzer
travis: test dialyzer
dev: dev:
mkdir -p _checkouts mkdir -p _checkouts

View file

@ -1,6 +1,6 @@
# qdate - Erlang Date and Timezone Library # qdate - Erlang Date and Timezone Library
[![Build Status](https://travis-ci.org/choptastic/qdate.png?branch=master)](https://travis-ci.org/choptastic/qdate) [![qdate tests and dialyzer](https://github.com/choptastic/qdate/actions/workflows/tests-workflow.yml/badge.svg)](https://github.com/choptastic/qdate/actions/workflows/tests-workflow.yml)
## Purpose ## Purpose

View file

@ -1206,6 +1206,8 @@ flooring(N) when N < 0 ->
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TESTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TESTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-ifdef(EUNIT).
-include_lib("eunit/include/eunit.hrl"). -include_lib("eunit/include/eunit.hrl").
%% emulates as if a forum-type website has a Site tz, and a user-specified tz %% emulates as if a forum-type website has a Site tz, and a user-specified tz
@ -1529,3 +1531,5 @@ microsoft_parser(_) ->
stop_test(_) -> stop_test(_) ->
ok. ok.
-endif.