Skip to content

Commit

Permalink
Merge a359b0a into 5612552
Browse files Browse the repository at this point in the history
  • Loading branch information
lexi-lambda committed Jan 6, 2017
2 parents 5612552 + a359b0a commit e7a228f
Show file tree
Hide file tree
Showing 16 changed files with 84 additions and 38 deletions.
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
point-free/compiled/*
point-free/*.bak
point-free/*.html
point-free/*.css
point-free/*.js
compiled/
27 changes: 21 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,33 @@
langauge: c
sudo: false
language: c

env:
global:
- RACKET_DIR=~/racket
matrix:
- RACKET_VERSION=6.1.1
- RACKET_VERSION=6.0 RUN_COVER=false RACO_TEST_OPTIONS=
- RACKET_VERSION=6.0.1 RUN_COVER=false RACO_TEST_OPTIONS=-e
- RACKET_VERSION=6.1 RUN_COVER=false RACO_TEST_OPTIONS=-e
- RACKET_VERSION=6.1.1 RUN_COVER=true RACO_TEST_OPTIONS=-e
- RACKET_VERSION=6.2 RUN_COVER=true RACO_TEST_OPTIONS=-e
- RACKET_VERSION=6.2.1 RUN_COVER=true RACO_TEST_OPTIONS=-e
- RACKET_VERSION=6.3 RUN_COVER=true RACO_TEST_OPTIONS=-e
- RACKET_VERSION=6.4 RUN_COVER=true RACO_TEST_OPTIONS=-e
- RACKET_VERSION=6.5 RUN_COVER=true RACO_TEST_OPTIONS=-e
- RACKET_VERSION=6.6 RUN_COVER=true RACO_TEST_OPTIONS=-e
- RACKET_VERSION=6.7 RUN_COVER=true RACO_TEST_OPTIONS=-e

before_install:
- git clone https://github.com/greghendershott/travis-racket.git ../travis-racket
- cat ../travis-racket/install-racket.sh | bash
- export PATH="${RACKET_DIR}/bin:${PATH}"

install: raco pkg install --deps search-auto $TRAVIS_BUILD_DIR # install dependencies
install:
- raco pkg install --installation --deps search-auto --link
$TRAVIS_BUILD_DIR/point-free-doc
$TRAVIS_BUILD_DIR/point-free-lib
$TRAVIS_BUILD_DIR/point-free-test
- if [ "$RUN_COVER" = true ]; then raco pkg install --installation --auto cover cover-coveralls; fi

script:
- raco test $TRAVIS_BUILD_DIR # run tests. you wrote tests, right?
- raco cover -f coveralls -d $TRAVIS_BUILD_DIR/coverage . # generate coverage information for coveralls
- raco test $RACO_TEST_OPTIONS -p point-free-lib point-free-test
- if [ "$RUN_COVER" = true ]; then raco cover -bf coveralls -d $TRAVIS_BUILD_DIR/coverage -p point-free-lib point-free-test; fi
9 changes: 0 additions & 9 deletions info.rkt

This file was deleted.

11 changes: 11 additions & 0 deletions point-free-doc/info.rkt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#lang info

(define collection 'multi)

(define deps
'())
(define build-deps
'("base"
"point-free-lib"
"racket-doc"
"scribble-lib"))
4 changes: 4 additions & 0 deletions point-free-doc/scribblings/info.rkt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#lang info

(define scribblings
'(["point-free.scrbl" ()]))
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@title{point-free}

@(define the-eval (make-base-eval))
@(the-eval '(require "main.rkt"
@(the-eval '(require point-free
racket/function
racket/list))

Expand Down Expand Up @@ -327,4 +327,3 @@ for example, are all nonnegative numbers. The absolute value of a nonnegative nu
(define count-to-ten (until-fixpoint count-once-to-ten))
(count-to-ten 5)
]}

8 changes: 8 additions & 0 deletions point-free-lib/info.rkt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#lang info

(define collection 'multi)

(define deps
'("base"))
(define build-deps
'("rackunit-lib"))
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang racket
#lang racket/base

(provide define/compose
arg-count
Expand All @@ -16,7 +16,8 @@
(define id (arg-count n expr)))

(module+ test
(require rackunit)
(require racket/function
rackunit)
(define-binary-check (check-syntax-datum stx-actual stx-expected)
(equal? (syntax->datum stx-actual)
(syntax->datum stx-expected)))
Expand All @@ -28,4 +29,4 @@
(arg-count n (const n)))
(check-eqv? (num-args1 0 0) 2)
(define/arg-count num-args2 n (const n))
(check-eqv? (num-args2 'foo 'bar 'baz) 3))
(check-eqv? (num-args2 'foo 'bar 'baz) 3))
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang racket
#lang racket/base

(provide define/wind
define/wind-pre
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#lang racket

(require rackunit)
#lang racket/base

(provide until-fixpoint
fixpoint?)

(module+ test
(require rackunit))

(define (until-fixpoint f)
(define (fixpoint-f v)
(let ([fv (f v)])
Expand Down
2 changes: 1 addition & 1 deletion point-free/main.rkt → point-free-lib/point-free/main.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#lang racket
#lang racket/base

(require "arg-count-syntax.rkt"
"parallel-composition.rkt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#lang racket

(require rackunit)
#lang racket/base

(provide join
join*
Expand All @@ -11,6 +9,10 @@
wind-post*
wind*)

(module+ test
(require racket/math
rackunit))

;; Function form of flat application - (app + 2 3) is equivalent to (+ 2 3).
;; Used to simplify logic in joining functins

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#lang racket

(require rackunit)
#lang racket/base

(provide thrush
thrush+
Expand All @@ -17,6 +15,9 @@
[thrush+-and and~>]
[thrush*-and and~>*]))

(module+ test
(require rackunit))

(define (thrush . fs)
(apply compose (reverse fs)))

Expand Down
10 changes: 10 additions & 0 deletions point-free-test/info.rkt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#lang info

(define collection 'multi)

(define deps
'())
(define build-deps
'("base"
"doc-coverage"
"point-free-lib"))
File renamed without changes.
11 changes: 9 additions & 2 deletions point-free/info.rkt
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#lang info

(define name "point-free")
(define scribblings '(("point-free.scrbl" ())))
(define collection 'multi)

(define deps
'("point-free-doc"
"point-free-lib"))
(define build-deps
'())

(define implies deps)

0 comments on commit e7a228f

Please sign in to comment.