Compare commits

..

No commits in common. "master" and "0.7.3" have entirely different histories.

7 changed files with 14 additions and 61 deletions

View file

@ -1,47 +0,0 @@
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,4 +7,3 @@ ebin/
.eunit/ .eunit/
.idea/ .idea/
_build _build
doc/

8
.travis.yml Normal file
View file

@ -0,0 +1,8 @@
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,7 +1,3 @@
## 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,12 +15,13 @@ compile: rebar3
update: rebar3 update: rebar3
$(REBAR) update $(REBAR) update
test: test: compile
EUNIT=1 $(REBAR) compile $(REBAR) eunit
EUNIT=1 $(REBAR) eunit
dialyzer: compile dialyzer: compile
DIALYZER=1 $(REBAR) dialyzer $(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
[![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) [![Build Status](https://travis-ci.org/choptastic/qdate.png?branch=master)](https://travis-ci.org/choptastic/qdate)
## Purpose ## Purpose

View file

@ -1206,8 +1206,6 @@ 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
@ -1531,5 +1529,3 @@ microsoft_parser(_) ->
stop_test(_) -> stop_test(_) ->
ok. ok.
-endif.