This repository has been archived by the owner on May 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Showing
31 changed files
with
1,408 additions
and
163 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,19 @@ | ||
{ | ||
"plugins": [ "joyent" ], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:joyent/style", | ||
"plugin:joyent/lint" | ||
], | ||
"parserOptions": { | ||
"ecmaVersion": 5, | ||
"sourceType": "script", | ||
"ecmaFeatures": { | ||
} | ||
}, | ||
"env": { | ||
"node": true | ||
}, | ||
"rules": { | ||
} | ||
} |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
node_modules | ||
/build | ||
/coverage | ||
/node_modules | ||
*.log |
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,3 @@ | ||
[submodule "deps/jsstyle"] | ||
path = deps/jsstyle | ||
url = https://github.com/joyent/jsstyle.git |
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,12 @@ | ||
*.log | ||
/Makefile | ||
/deps | ||
/test | ||
/tools | ||
/.gitmodules | ||
/.npmignore | ||
/.eslintrc | ||
/.travis.yml | ||
/CONTRIBUTING.md | ||
/build | ||
/coverage |
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
# Contributing | ||
|
||
This repository uses GitHub pull requests for code review. | ||
|
||
See the [Joyent Engineering | ||
Guidelines](https://github.com/joyent/eng/blob/master/docs/index.md) for general | ||
best practices expected in this repository. | ||
|
||
Contributions should be "make prepush" clean. The "prepush" target runs the | ||
"check" target, which will check for linting and style errors. | ||
|
||
If you're changing something non-trivial or user-facing, you may want to submit | ||
an issue first. |
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,65 @@ | ||
@Library('jenkins-joylib@v1.0.3') _ | ||
|
||
pipeline { | ||
|
||
agent none | ||
|
||
options { | ||
buildDiscarder(logRotator(numToKeepStr: '45')) | ||
timestamps() | ||
} | ||
|
||
stages { | ||
stage('top') { | ||
parallel { | ||
stage('v4-zone') { | ||
agent { | ||
label joyCommonLabels(image_ver: '15.4.1') | ||
} | ||
tools { | ||
nodejs 'sdcnode-v4-zone' | ||
} | ||
stages { | ||
stage('check') { | ||
steps{ | ||
sh('make check') | ||
} | ||
} | ||
stage('test') { | ||
steps{ | ||
sh('make test') | ||
} | ||
} | ||
} | ||
} | ||
|
||
stage('v6-zone64') { | ||
agent { | ||
label joyCommonLabels(image_ver: '18.4.0') | ||
} | ||
tools { | ||
nodejs 'sdcnode-v6-zone64' | ||
} | ||
stages { | ||
stage('check') { | ||
steps{ | ||
sh('make check') | ||
} | ||
} | ||
stage('test') { | ||
steps{ | ||
sh('make test') | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
always { | ||
joyMattermostNotification() | ||
} | ||
} | ||
} |
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,59 @@ | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
|
||
# | ||
# Copyright 2019, Joyent, Inc. | ||
# | ||
|
||
# | ||
# node-asn1 Makefile | ||
# | ||
|
||
# | ||
# Tools | ||
# | ||
|
||
ISTANBUL := node_modules/.bin/istanbul | ||
FAUCET := node_modules/.bin/faucet | ||
NODE := node | ||
NPM := npm | ||
|
||
# | ||
# Files | ||
# | ||
|
||
JS_FILES := $(shell find lib test -name '*.js') | ||
JSSTYLE_FILES = $(JS_FILES) | ||
JSSTYLE_FLAGS = -f tools/jsstyle.conf | ||
ESLINT = ./node_modules/.bin/eslint | ||
ESLINT_FILES = $(JS_FILES) | ||
|
||
include ./tools/mk/Makefile.defs | ||
include ./tools/mk/Makefile.smf.defs | ||
|
||
# | ||
# Repo-specific targets | ||
# | ||
|
||
.PHONY: all | ||
all: $(TAPE) | ||
$(NPM) rebuild | ||
|
||
$(ISTANBUL): | $(NPM_EXEC) | ||
$(NPM) install | ||
|
||
$(FAUCET): | $(NPM_EXEC) | ||
$(NPM) install | ||
|
||
CLEAN_FILES += ./node_modules/ | ||
|
||
.PHONY: test | ||
test: $(ISTANBUL) $(FAUCET) | ||
$(ISTANBUL) cover --print none test/run.js | $(FAUCET) | ||
|
||
include ./tools/mk/Makefile.deps | ||
include ./tools/mk/Makefile.smf.targ | ||
include ./tools/mk/Makefile.targ |
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
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
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
Oops, something went wrong.