Skip to content

Commit

Permalink
raco pkg new
Browse files Browse the repository at this point in the history
  • Loading branch information
mwunsch committed Feb 16, 2017
0 parents commit 6080177
Show file tree
Hide file tree
Showing 6 changed files with 129 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
@@ -0,0 +1,6 @@
*~
\#*
.\#*
.DS_Store
compiled/
/doc/
58 changes: 58 additions & 0 deletions .travis.yml
@@ -0,0 +1,58 @@
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=6.5
- RACKET_VERSION=6.6
- RACKET_VERSION=6.7
- 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 chyron

after_success:
- raco setup --check-pkg-deps --pkgs chyron
- raco pkg install --deps search-auto cover cover-coveralls
- raco cover -b -f coveralls -d $TRAVIS_BUILD_DIR/coverage .
11 changes: 11 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,11 @@
chyron
Copyright (c) 2017 markwunsch

This package is distributed under the GNU Lesser General Public
License (LGPL). This means that you can link chyron into proprietary
applications, provided you follow the rules stated in the LGPL. You
can also modify this package; if you distribute a modified version,
you must distribute it under the terms of the LGPL, which in
particular means that you must release the source code for the
modified software. See http://www.gnu.org/copyleft/lesser.html
for more information.
9 changes: 9 additions & 0 deletions info.rkt
@@ -0,0 +1,9 @@
#lang info
(define collection "chyron")
(define deps '("base"
"rackunit-lib"))
(define build-deps '("scribble-lib" "racket-doc"))
(define scribblings '(("scribblings/chyron.scrbl" ())))
(define pkg-desc "Description Here")
(define version "0.0")
(define pkg-authors '(markwunsch))
35 changes: 35 additions & 0 deletions 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 <<name>>
;; To uninstall:
;; $ raco pkg remove <<name>>
;; To view documentation:
;; $ raco docs <<name>>
;;
;; 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.
)
10 changes: 10 additions & 0 deletions scribblings/chyron.scrbl
@@ -0,0 +1,10 @@
#lang scribble/manual
@require[@for-label[chyron
racket/base]]

@title{chyron}
@author{markwunsch}

@defmodule[chyron]

Package Description Here

0 comments on commit 6080177

Please sign in to comment.