mirror of
https://github.com/deavmi/doap
synced 2024-07-04 16:10:15 +02:00
Merge branch 'master' into feature/timeoutable_gets
This commit is contained in:
commit
ba54bf1b70
16
.github/workflows/d.yml
vendored
16
.github/workflows/d.yml
vendored
|
@ -6,9 +6,9 @@ name: D
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
branches: [ "**" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
branches: [ "**" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
@ -22,6 +22,12 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
|
||||
|
||||
|
||||
- name: Install Doveralls (code coverage tool)
|
||||
run: |
|
||||
dub fetch doveralls
|
||||
sudo apt install libcurl4-openssl-dev
|
||||
|
||||
- name: 'Build & Test'
|
||||
run: |
|
||||
# Build the project, with its main file included, without unittests
|
||||
|
@ -29,4 +35,8 @@ jobs:
|
|||
# Build and run tests, as defined by `unittest` configuration
|
||||
# In this mode, `mainSourceFile` is excluded and `version (unittest)` are included
|
||||
# See https://dub.pm/package-format-json.html#configurations
|
||||
dub test --compiler=$DC
|
||||
dub test --compiler=$DC --coverage
|
||||
|
||||
- name: Coverage upload
|
||||
run: |
|
||||
dub run doveralls -- -t ${{secrets.COVERALLS_REPO_TOKEN}}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
doap
|
||||
====
|
||||
|
||||
[![D](https://github.com/deavmi/doap/actions/workflows/d.yml/badge.svg?branch=master)](https://github.com/deavmi/doap/actions/workflows/d.yml)
|
||||
[![D](https://github.com/deavmi/doap/actions/workflows/d.yml/badge.svg?branch=master)](https://github.com/deavmi/doap/actions/workflows/d.yml) [![Coverage Status](https://coveralls.io/repos/github/deavmi/doap/badge.svg?branch=master)](https://coveralls.io/github/deavmi/doap?branch=master)
|
||||
|
||||
**doap** is a CoAP library for the D programming language.
|
||||
|
||||
|
@ -13,7 +13,7 @@ Documentation is available [here](https://doap.dpldocs.info/).
|
|||
|
||||
### Making a request
|
||||
|
||||
```
|
||||
```d
|
||||
CoapClient client = new CoapClient("coap.me", 5683);
|
||||
|
||||
CoapRequestFuture future = client.newRequestBuilder()
|
||||
|
|
Loading…
Reference in New Issue
Block a user