Skip to content

8254 update modbus #3

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 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
60 changes: 60 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Publish Sphinx Docs to GitHub Pages
on:
# Build the docs on pushes to main branch, PRs to main branch, and new tags.
# Publish only on demand.
push:
branches:
- master
tags:
- '*' # all tags
workflow_dispatch: # allow manual triggering
inputs:
deploy:
description: 'Deploy documentation'
type: boolean
required: true
default: false


# see: https://sphinx-notes.github.io/pages/
# see: https://github.com/marketplace/actions/sphinx-to-github-pages

jobs:

build-docs:
runs-on: ubuntu-latest

steps:
- name: Deploy Information
if: ${{ github.event.inputs.deploy }}
run: |
echo "The will be published from this workflow run."

- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo

- name: Install pip
run: |
sudo apt-get -y update
sudo apt-get -y install python3-pip
which pip3
which pip

- name: Install packages used by Sphinx
run: |
pip install m2r2 "pygments >=2.7.0" "sphinx_rtd_theme >=1.2.0" sphinx-multibuild
pip list

- name: Build and Commit
uses: sphinx-notes/pages@v2
with:
# path to conf.py directory
documentation_path: docs/source

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ bin/
/db/
dbd/
html/
_docs/
include/
lib/
templates/
__pycache__/
cdCommands
envPaths
dllPath.bat
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule ".ci"]
path = .ci
url = https://github.com/epics-base/ci-scripts
117 changes: 117 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# .travis.yml for use with EPICS Base ci-scripts
# (see: https://github.com/epics-base/ci-scripts)

language: cpp
compiler: gcc
dist: xenial

cache:
directories:
- $HOME/.cache

env:
global:
- SETUP_PATH=.ci
- MODULES="asyn"
- ASYN=master

addons:
apt:
packages:
# for all EPICS builds
- libreadline6-dev
- libncurses5-dev
- perl
# for clang compiler
- clang
# for mingw builds (32bit and 64bit)
- g++-mingw-w64-i686
- g++-mingw-w64-x86-64
# for RTEMS cross builds
- qemu-system-x86
homebrew:
packages:
# for all EPICS builds
- bash
# for the sequencer
- re2c
update: true

install:
- ./.ci/travis/prepare.sh

script:
- ./.ci/travis/build.sh

# If you need to do more during install and build,
# add a local directory to your module and do e.g.
# - ./.ci-local/travis/install-extras.sh

# Define build jobs

# Well-known variables to use
# SET source setup file
# ADD_MODULES extra modules (for a specific job)
# EXTRA content will be added to make command line
# STATIC set to YES for static build (default: NO)
# TEST set to NO to skip running the tests (default: YES)
# VV set to make build scripts verbose (default: unset)

# Usually from setup files, but may be specified or overridden
# on a job line
# MODULES list of dependency modules
# BASE branch or release tag name of the EPICS Base to use
# <MODULE> branch or release tag for a specific module
# ... see README for setup file syntax description

jobs:
include:

# Different configurations of default gcc and clang
- env: BASE=7.0

- env: BASE=7.0
compiler: clang

- env: BASE=7.0 EXTRA="CMD_CXXFLAGS=-std=c++11"

- env: BASE=7.0 EXTRA="CMD_CXXFLAGS=-std=c++11"
compiler: clang

# Trusty: compiler versions very close to RHEL 7

- env: BASE=7.0
dist: trusty

- env: BASE=7.0 EXTRA="CMD_CXXFLAGS=-std=c++11"
dist: trusty

# Cross-compilations to Windows using MinGW and WINE

- env: BASE=7.0 WINE=32 TEST=NO STATIC=YES
compiler: mingw

- env: BASE=7.0 WINE=64 TEST=NO STATIC=NO
compiler: mingw

# Cross-compilation to RTEMS

- env: BASE=7.0 RTEMS=4.10 TEST=NO

- env: BASE=7.0 RTEMS=4.9 TEST=NO

# Other gcc versions (added as an extra package)

- env: BASE=7.0
compiler: gcc-6
addons: { apt: { packages: ["g++-6"], sources: ["ubuntu-toolchain-r-test"] } }

- env: BASE=7.0
compiler: gcc-7
addons: { apt: { packages: ["g++-7"], sources: ["ubuntu-toolchain-r-test"] } }

# MacOS build

- env: BASE=7.0
os: osx
compiler: clang
47 changes: 47 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Copyright and License Terms
---------------------------

Copyright (c) 2007-2018 Mark L. Rivers
Copyright (c) 2007-2018 The University of Chicago

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

________________________________________________________________________

Additional Disclaimers
----------------------

This software is copyright in part by these institutions:

* The University of Chicago

In no event shall these institutions be liable to any party for direct,
indirect, special, incidental, or consequential damages arising out of
the use of this software, its documentation, or any derivatives thereof,
even if advised of the possibility of such damage.

These institutions specifically disclaim any warranties, including, but
not limited to, the implied warranties of merchantability, fitness for a
particular purpose, and non-infringement. This software is provided on
an "as is" basis, and these institutions have no obligation to provide
maintenance, support, updates, enhancements, or modifications.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ and the EPICS asyn TCP/IP or serial port driver.

Additional information:

* [Home page](http://cars.uchicago.edu/software/epics/modbus.html)
* [Documentation](http://cars.uchicago.edu/software/epics/modbusDoc.html)
* [Release notes](http://cars.uchicago.edu/software/epics/modbusReleaseNotes.html)
* [Documentation](https://epics-modules.github.io/modbus)
* [Release notes](RELEASE.md)
Loading