From 660ba05cce52fb34f91a283de32d6de1e25c75a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Sun, 7 Aug 2016 18:36:27 +0200 Subject: [PATCH] Created new package for scribble-math --- .gitignore | 6 ++++ .travis.yml | 55 +++++++++++++++++++++++++++++++++ README.md | 3 ++ info.rkt | 9 ++++++ main.rkt | 35 +++++++++++++++++++++ scribblings/scribble-math.scrbl | 10 ++++++ 6 files changed, 118 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 README.md create mode 100644 info.rkt create mode 100644 main.rkt create mode 100644 scribblings/scribble-math.scrbl diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..1a5934860 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*~ +\#* +.\#* +.DS_Store +compiled/ +/doc/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..841de5583 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,55 @@ +language: c + +# Based from: https://github.com/greghendershott/travis-racket + +# Optional: Remove to use Travis CI's older infrastructure. +sudo: false + +env: + global: + # Supply a global RACKET_DIR environment variable. This is where + # Racket will be installed. A good idea is to use ~/racket because + # that doesn't require sudo to install and is therefore compatible + # with Travis CI's newer container infrastructure. + - RACKET_DIR=~/racket + matrix: + # Supply at least one RACKET_VERSION environment variable. This is + # used by the install-racket.sh script (run at before_install, + # below) to select the version of Racket to download and install. + # + # Supply more than one RACKET_VERSION (as in the example below) to + # create a Travis-CI build matrix to test against multiple Racket + # versions. + - RACKET_VERSION=6.0 + - RACKET_VERSION=6.1 + - RACKET_VERSION=6.1.1 + - RACKET_VERSION=6.2 + - RACKET_VERSION=6.3 + - RACKET_VERSION=6.4 + - RACKET_VERSION=HEAD + +matrix: + allow_failures: +# - env: RACKET_VERSION=HEAD + fast_finish: true + +before_install: +- git clone https://github.com/greghendershott/travis-racket.git ~/travis-racket +- cat ~/travis-racket/install-racket.sh | bash # pipe to bash not sh! +- export PATH="${RACKET_DIR}/bin:${PATH}" #install-racket.sh can't set for us + +install: + - raco pkg install --deps search-auto + +before_script: + +# Here supply steps such as raco make, raco test, etc. You can run +# `raco pkg install --deps search-auto` to install any required +# packages without it getting stuck on a confirmation prompt. +script: + - raco test -x -p scribble-math + +after_success: + - raco setup --check-pkg-deps --pkgs scribble-math + - raco pkg install --deps search-auto cover cover-coveralls + - raco cover -b -f coveralls -d $TRAVIS_BUILD_DIR/coverage . diff --git a/README.md b/README.md new file mode 100644 index 000000000..7809ac9fe --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +scribble-math +============= +README text here. diff --git a/info.rkt b/info.rkt new file mode 100644 index 000000000..a54fe3876 --- /dev/null +++ b/info.rkt @@ -0,0 +1,9 @@ +#lang info +(define collection "scribble-math") +(define deps '("base" + "rackunit-lib")) +(define build-deps '("scribble-lib" "racket-doc")) +(define scribblings '(("scribblings/scribble-math.scrbl" ()))) +(define pkg-desc "Description Here") +(define version "0.0") +(define pkg-authors '(georges)) diff --git a/main.rkt b/main.rkt new file mode 100644 index 000000000..216dcac89 --- /dev/null +++ b/main.rkt @@ -0,0 +1,35 @@ +#lang racket/base + +(module+ test + (require rackunit)) + +;; Notice +;; To install (from within the package directory): +;; $ raco pkg install +;; To install (once uploaded to pkgs.racket-lang.org): +;; $ raco pkg install <> +;; To uninstall: +;; $ raco pkg remove <> +;; To view documentation: +;; $ raco docs <> +;; +;; For your convenience, we have included a LICENSE.txt file, which links to +;; the GNU Lesser General Public License. +;; If you would prefer to use a different license, replace LICENSE.txt with the +;; desired license. +;; +;; Some users like to add a `private/` directory, place auxiliary files there, +;; and require them in `main.rkt`. +;; +;; See the current version of the racket style guide here: +;; http://docs.racket-lang.org/style/index.html + +;; Code here + +(module+ test + ;; Tests to be run with raco test + ) + +(module+ main + ;; Main entry point, executed when run with the `racket` executable or DrRacket. + ) diff --git a/scribblings/scribble-math.scrbl b/scribblings/scribble-math.scrbl new file mode 100644 index 000000000..5bc8365ca --- /dev/null +++ b/scribblings/scribble-math.scrbl @@ -0,0 +1,10 @@ +#lang scribble/manual +@require[@for-label[scribble-math + racket/base]] + +@title{scribble-math} +@author{georges} + +@defmodule[scribble-math] + +Package Description Here