-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3fbaa21
commit 1a3e5ac
Showing
30 changed files
with
6,103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.git | ||
.cache | ||
.benchmarks | ||
env-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.csv text eol=lf | ||
*.txt text eol=lf | ||
*.json text eol=lf | ||
*.tab text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
target | ||
/Dockerfile | ||
*.bak | ||
*.test | ||
.bechmarks | ||
.cache | ||
.coverage* | ||
*.egg | ||
*.manifest | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.env | ||
.venv | ||
.tmp | ||
*.so | ||
__pycache__ | ||
*.egg-info | ||
htmlcov | ||
.idea | ||
.pytest_cache | ||
build | ||
dist | ||
**/env-* | ||
**/*.log | ||
**/*.test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
os: linux | ||
|
||
dist: xenial | ||
|
||
sudo: required | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- lcov | ||
- astyle | ||
- devscripts | ||
- python | ||
- python-pip | ||
- python-autopep8 | ||
- doxygen | ||
- fakeroot | ||
- debhelper | ||
- pkg-config | ||
- alien | ||
- rpm | ||
- dh-make | ||
- dh-golang | ||
|
||
install: | ||
- gem install coveralls-lcov | ||
|
||
matrix: | ||
include: | ||
- language: c | ||
script: | ||
- make c | ||
#after_success: | ||
# - coveralls-lcov /home/travis/build/nexmoinc/numkey/c/target/test/coverage/numkey.info | ||
- language: go | ||
script: | ||
- make go | ||
- language: python | ||
script: | ||
- make python | ||
- language: node_js | ||
node_js: | ||
- "7" | ||
install: | ||
- npm install --global uglify-js js-beautify | ||
script: | ||
- make javascript | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Copyright (c) 2019 Vonage - All rights reseved. | ||
|
||
Some of the code is subject to the following license: | ||
|
||
MIT LICENSE | ||
|
||
Copyright (c) 2017-2018 GENOMICS plc | ||
Copyright (c) 2017-2019 Nicola Asuni - Tecnick.com | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# MAKEFILE | ||
# | ||
# @author Nicola Asuni <[email protected]> | ||
# @link https://github.com/nexmoinc/numkey | ||
# ------------------------------------------------------------------------------ | ||
|
||
# CVS path (path to the parent dir containing the project) | ||
CVSPATH=github.com/nexmoinc | ||
|
||
# Project vendor | ||
VENDOR=nexmoinc | ||
|
||
# Project name | ||
PROJECT=numkey | ||
|
||
# --- MAKE TARGETS --- | ||
|
||
# Display general help about this command | ||
.PHONY: help | ||
help: | ||
@echo "" | ||
@echo "NumKey Makefile." | ||
@echo "The following commands are available:" | ||
@echo "" | ||
@echo " make c : Build and test the C version" | ||
@echo " make go : Build and test the GO version" | ||
@echo " make javascript : Build and test the Javascript version" | ||
@echo " make python : Build and test the Python version" | ||
@echo " make clean : Remove any build artifact" | ||
@echo " make dbuild : Build everything inside a Docker container" | ||
@echo "" | ||
|
||
all: clean c go javascript python | ||
|
||
# Build and test the C version | ||
.PHONY: c | ||
c: | ||
cd c && make all | ||
|
||
# Build and test the GO version | ||
.PHONY: go | ||
go: | ||
cd go && make all | ||
|
||
# Build and test the Javascript version | ||
.PHONY: javascript | ||
javascript: | ||
cd javascript && make all | ||
|
||
# Build and test the Python version | ||
.PHONY: python | ||
python: | ||
cd python && make all | ||
|
||
# Remove any build artifact | ||
.PHONY: clean | ||
clean: | ||
rm -rf target | ||
cd c && make clean | ||
cd go && make clean | ||
cd javascript && make clean | ||
cd python && make clean | ||
|
||
# Build everything inside a Docker container | ||
.PHONY: dbuild | ||
dbuild: | ||
@mkdir -p target | ||
@rm -rf target/* | ||
@echo 0 > target/make.exit | ||
CVSPATH=$(CVSPATH) VENDOR=$(VENDOR) PROJECT=$(PROJECT) MAKETARGET='$(MAKETARGET)' ./dockerbuild.sh | ||
@exit `cat target/make.exit` | ||
|
||
# Publish Documentation in GitHub (requires writing permissions) | ||
.PHONY: pubdocs | ||
pubdocs: | ||
rm -rf ./target/DOCS | ||
rm -rf ./target/gh-pages | ||
mkdir -p ./target/DOCS/c | ||
cp -r ./c/target/build/doc/html/* ./target/DOCS/c/ | ||
mkdir -p ./target/DOCS/go | ||
cp -r ./go/target/docs/* ./target/DOCS/go/ | ||
mkdir -p ./target/DOCS/python | ||
cp -r ./python/target/doc/numkey.html ./target/DOCS/python/ | ||
cp ./resources/doc/index.html ./target/DOCS/ | ||
git clone [email protected]:nexmoinc/numkey.git ./target/gh-pages | ||
cd target/gh-pages && git checkout gh-pages | ||
mv -f ./target/gh-pages/.git ./target/DOCS/ | ||
rm -rf ./target/gh-pages | ||
cd ./target/DOCS/ && \ | ||
git add . -A && \ | ||
git commit -m 'Update documentation' && \ | ||
git push origin gh-pages --force |
Oops, something went wrong.