phc-ts/.travis.yml

31 lines
1.2 KiB
YAML

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.8 COV=true
#- RACKET_VERSION=6.9 COV=true
- RACKET_VERSION=7.0 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")" || true; fi ############################# DOC-COVERAGE IS DISABLED WITH || true
- 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.