From 60a7423b2d7414599b88177a5d6bcf7ce728f3d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Thu, 20 Apr 2017 09:40:46 +0200 Subject: [PATCH] Rewrote .travis.yml --- .travis.yml | 51 +++++++++++++-------------------------------------- 1 file changed, 13 insertions(+), 38 deletions(-) diff --git a/.travis.yml b/.travis.yml index f6ad2ec..f5df11e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,53 +1,28 @@ 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 is an argument to install-racket.sh - RACKET_DIR=~/racket + - PATH="$RACKET_DIR/bin:$PATH" 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 is an argument to install-racket.sh - RACKET_VERSION=6.8 + - RACKET_VERSION=RELEASE - 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 +- curl -L https://raw.githubusercontent.com/greghendershott/travis-racket/master/install-racket.sh | bash +- raco pkg install --deps search-auto doc-coverage cover cover-codecov # or cover-coveralls install: - - raco pkg install -j 2 --deps search-auto +- raco pkg install --deps search-auto -j 2 -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 -p subtemplate - - raco setup --check-pkg-deps --pkgs subtemplate - - raco pkg install doc-coverage - #- raco doc-coverage -s 'pattern-expander\?|pattern-expander|prop:pattern-expander|syntax-local-syntax-parse-pattern-introduce|\.\.\.\+|attribute|boolean|char|character|define-conventions|define-eh-alternative-set|define-literal-set|define-splicing-syntax-class|define-syntax-class|define/syntax-parse|exact-integer|exact-nonnegative-integer|exact-positive-integer|expr|expr/c|id|identifier|integer|kernel-literals|keyword|literal-set->predicate|nat|number|pattern|static|str|syntax-parse|syntax-parser|this-syntax|~!|~and|~between|~bind|~commit|~datum|~delimit-cut|~describe|~do|~fail|~literal|~not|~once|~optional|~or|~parse|~peek|~peek-not|~post|~rest|~seq|~var|datum-case|define/with-syntax|syntax-case|syntax-case\*|with-datum|with-syntax' subtemplate - - raco doc-coverage subtemplate/light - #- raco pkg install --deps search-auto cover cover-codecov - #- raco cover -b -f codecov -d $TRAVIS_BUILD_DIR/coverage . - -after_success: +- raco test -x -p "$(basename "$TRAVIS_BUILD_DIR")" +- raco setup --check-pkg-deps --no-zo --no-launcher --no-install --no-post-install --no-docs --pkgs "$(basename "$TRAVIS_BUILD_DIR")" +- raco doc-coverage subtemplate/light +- raco cover -s main -s test -s doc -f codecov -f html -d ~/coverage . || true +# TODO: add an option to cover to run the "outer" module too, not just the submodules. +# TODO: deploy the coverage info. \ No newline at end of file