52 lines
2.3 KiB
YAML
52 lines
2.3 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=7.0 COVER=true
|
|
- RACKET_VERSION=7.1 COVER=true
|
|
- RACKET_VERSION=7.2 COVER=true
|
|
- RACKET_VERSION=7.3 COVER=true
|
|
- RACKET_VERSION=7.4 COVER=true
|
|
- RACKET_VERSION=7.5 COVER=true
|
|
- RACKET_VERSION=7.6 COVER=true
|
|
- RACKET_VERSION=7.7 COVER=true
|
|
- RACKET_VERSION=7.8 COVER=true
|
|
- RACKET_VERSION=7.9 COVER=true
|
|
- RACKET_VERSION=8.0 COVER=true
|
|
- RACKET_VERSION=8.0 COVER=true RACKET_CS=1
|
|
- RACKET_VERSION=HEAD COVER=true
|
|
|
|
before_install:
|
|
- curl -L https://raw.githubusercontent.com/greghendershott/travis-racket/master/install-racket.sh | bash
|
|
- if $COVER; then raco pkg install --deps search-auto doc-coverage cover cover-codecov; fi # or cover-coveralls
|
|
|
|
install:
|
|
- raco pkg install --deps search-auto -j 1 phc-adt/ phc-adt-doc/ phc-adt-lib/ phc-adt-test/
|
|
|
|
script:
|
|
- raco test -r -p phc-adt phc-adt-doc phc-adt-lib phc-adt-test
|
|
- raco setup --check-pkg-deps --no-zo --no-launcher --no-install --no-post-install --no-docs --pkgs phc-adt phc-adt-doc phc-adt-lib phc-adt-test
|
|
- if $COVER; then raco doc-coverage phc-adt; fi
|
|
- if $COVER; 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.
|
|
#
|
|
#
|
|
#####################################################################################################
|
|
# This actually takes too long, and the build times out sometimes.
|
|
#- mv ~/.racket ~/.racket-local-install
|
|
#- echo
|
|
#- echo Installing from the main repository, to catch eventual dependency issues on the master branch.
|
|
#- echo
|
|
#- raco pkg install --deps search-auto -j 2 "$(basename "$TRAVIS_BUILD_DIR")"
|
|
#- raco test -r -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 "$(basename "$TRAVIS_BUILD_DIR")"
|
|
#####################################################################################################
|