Package skeleton
This commit is contained in:
commit
66e728b015
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
*~
|
||||||
|
\#*
|
||||||
|
.\#*
|
||||||
|
.DS_Store
|
||||||
|
compiled/
|
||||||
|
/doc/
|
||||||
|
/coverage/
|
37
.travis.yml
Normal file
37
.travis.yml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
language: c
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
# RACKET_DIR is an argument to install-racket.sh
|
||||||
|
- RACKET_DIR=~/racket
|
||||||
|
- PATH="$RACKET_DIR/bin:$PATH"
|
||||||
|
matrix:
|
||||||
|
# RACKET_VERSION is an argument to install-racket.sh
|
||||||
|
- RACKET_VERSION=6.0 COV=false
|
||||||
|
- RACKET_VERSION=6.1 COV=false
|
||||||
|
- RACKET_VERSION=6.1.1 COV=false
|
||||||
|
- RACKET_VERSION=6.2 COV=false
|
||||||
|
- RACKET_VERSION=6.3 COV=false
|
||||||
|
- RACKET_VERSION=6.4 COV=true
|
||||||
|
- RACKET_VERSION=6.5 COV=true
|
||||||
|
- RACKET_VERSION=6.6 COV=true
|
||||||
|
- RACKET_VERSION=6.7 COV=true
|
||||||
|
- RACKET_VERSION=6.8 COV=true
|
||||||
|
- RACKET_VERSION=RELEASE COV=true
|
||||||
|
- RACKET_VERSION=HEAD COV=true
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- curl -L https://raw.githubusercontent.com/greghendershott/travis-racket/master/install-racket.sh | bash
|
||||||
|
- if $COV; then raco pkg install --deps search-auto doc-coverage cover cover-codecov; fi # or cover-coveralls
|
||||||
|
|
||||||
|
install:
|
||||||
|
- raco pkg install --deps search-auto -j 2
|
||||||
|
|
||||||
|
script:
|
||||||
|
- raco test -x -p "$(basename "$TRAVIS_BUILD_DIR")"
|
||||||
|
- if $COV; then raco setup --check-pkg-deps --no-zo --no-launcher --no-install --no-post-install --no-docs --pkgs "$(basename "$TRAVIS_BUILD_DIR")"; fi
|
||||||
|
- if $COV; then raco doc-coverage "$(basename "$TRAVIS_BUILD_DIR")"; fi
|
||||||
|
- if $COV; then raco cover -s main -s test -s doc -f codecov -f html -d ~/coverage . || true; fi
|
||||||
|
# TODO: add an option to cover to run the "outer" module too, not just the submodules.
|
||||||
|
# TODO: deploy the coverage info.
|
24
LICENSE-more.md
Normal file
24
LICENSE-more.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
$$$PKG_NAME$$$
|
||||||
|
Copyright (c) 2016-2017 Georges Dupéron
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
This package is in distributed under the Creative Commons CC0 license
|
||||||
|
https://creativecommons.org/publicdomain/zero/1.0/, as specified by
|
||||||
|
the LICENSE.txt file.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
The CC0 license is equivalent to a dedication to the Public Domain
|
||||||
|
in most countries, but is also effective in countries which do not
|
||||||
|
recognize explicit dedications to the Public Domain.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
In order to avoid any potential licensing issues, this package is explicitly
|
||||||
|
distributed under the Creative Commons CC0 license
|
||||||
|
https://creativecommons.org/publicdomain/zero/1.0/, or under the GNU Lesser
|
||||||
|
General Public License (LGPL) https://opensource.org/licenses/LGPL-3.0, or
|
||||||
|
under the Apache License Version 2.0
|
||||||
|
https://opensource.org/licenses/Apache-2.0, or under the MIT license
|
||||||
|
https://opensource.org/licenses/MIT, at your option.
|
24
LICENSE.txt
Normal file
24
LICENSE.txt
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
$$$PKG_NAME$$$
|
||||||
|
Copyright (c) 2016-2017 Georges Dupéron
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
This package is in distributed under the Creative Commons CC0 license
|
||||||
|
https://creativecommons.org/publicdomain/zero/1.0/, as specified by
|
||||||
|
the LICENSE.txt file.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
The CC0 license is equivalent to a dedication to the Public Domain
|
||||||
|
in most countries, but is also effective in countries which do not
|
||||||
|
recognize explicit dedications to the Public Domain.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
In order to avoid any potential licensing issues, this package is explicitly
|
||||||
|
distributed under the Creative Commons CC0 license
|
||||||
|
https://creativecommons.org/publicdomain/zero/1.0/, or under the GNU Lesser
|
||||||
|
General Public License (LGPL) https://opensource.org/licenses/LGPL-3.0, or
|
||||||
|
under the Apache License Version 2.0
|
||||||
|
https://opensource.org/licenses/Apache-2.0, or under the MIT license
|
||||||
|
https://opensource.org/licenses/MIT, at your option.
|
11
README.md
Normal file
11
README.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[](https://travis-ci.org/jsmaniac/$$$PKG_NAME$$$)
|
||||||
|
[](https://codecov.io/gh/jsmaniac/$$$PKG_NAME$$$)
|
||||||
|
[](http://jsmaniac.github.io/travis-stats/#jsmaniac/$$$PKG_NAME$$$)
|
||||||
|
[](http://docs.racket-lang.org/$$$PKG_NAME$$$/)
|
||||||
|
[](https://github.com/jsmaniac/$$$PKG_NAME$$$/issues)
|
||||||
|
[](https://creativecommons.org/publicdomain/zero/1.0/)
|
||||||
|
|
||||||
|
$$$PKG_NAME$$$
|
||||||
|
==============
|
||||||
|
|
||||||
|
A Racket package.
|
10
info.rkt
Normal file
10
info.rkt
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#lang info
|
||||||
|
(define collection "$$$PKG_NAME$$$")
|
||||||
|
(define deps '("base" ;; ("base" "6.4")
|
||||||
|
"rackunit-lib"))
|
||||||
|
(define build-deps '("scribble-lib"
|
||||||
|
"racket-doc"))
|
||||||
|
(define scribblings '(("scribblings/$$$PKG_NAME$$$.scrbl" ())))
|
||||||
|
(define pkg-desc "")
|
||||||
|
(define version "0.0")
|
||||||
|
(define pkg-authors '("Georges Dupéron"))
|
14
main.rkt
Normal file
14
main.rkt
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#lang hyper-literate #:no-auto-require(dotlambda/unhygienic . typed/racket/base)
|
||||||
|
|
||||||
|
@(require (for-label typed/racket/base))
|
||||||
|
|
||||||
|
@section{Conclusion}
|
||||||
|
|
||||||
|
@chunk[<*>
|
||||||
|
(provide
|
||||||
|
;; description
|
||||||
|
#;id)
|
||||||
|
|
||||||
|
(require (for-syntax racket/base))
|
||||||
|
|
||||||
|
#;(define id …)]
|
31
scribblings/travis-skeleton.scrbl
Normal file
31
scribblings/travis-skeleton.scrbl
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
#lang scribble/manual
|
||||||
|
@require[@for-label[$$$PKG_NAME$$$
|
||||||
|
racket/base]]
|
||||||
|
|
||||||
|
@title{$$$PKG_NAME$$$}
|
||||||
|
@author[@author+email["Georges Dupéron" "georges.duperon@gmail.com"]]
|
||||||
|
|
||||||
|
@defmodule[$$$PKG_NAME$$$]
|
||||||
|
|
||||||
|
There is no documentation for this package yet.
|
||||||
|
|
||||||
|
@(define-syntax (show-ids _stx)
|
||||||
|
(syntax-case stx ()
|
||||||
|
[(_ b)
|
||||||
|
(boolean? (syntax-e #'b))
|
||||||
|
(let-values ([(vars stx-vars) (module->exports $$$PKG_NAME$$$)])
|
||||||
|
#`(itemlist
|
||||||
|
#,(for*/list ([phase+ids (in-list (if (syntax-e #'b) vars stx-vars))]
|
||||||
|
[phase (in-value (car phase+ids))]
|
||||||
|
[id (in-list (cdr phase+ids))])
|
||||||
|
#`(item (racketit #,id)
|
||||||
|
"at phase"
|
||||||
|
#,(number->string phase)))))]))
|
||||||
|
|
||||||
|
The following variables are provided:
|
||||||
|
|
||||||
|
@(show-ids #t)
|
||||||
|
|
||||||
|
The following syntaxes are provided:
|
||||||
|
|
||||||
|
@(show-ids #f)
|
Loading…
Reference in New Issue
Block a user