.travis.yml (2262B)
1 language: c 2 3 # Based from: https://github.com/greghendershott/travis-racket 4 5 # Optional: Remove to use Travis CI's older infrastructure. 6 sudo: false 7 8 env: 9 global: 10 # Supply a global RACKET_DIR environment variable. This is where 11 # Racket will be installed. A good idea is to use ~/racket because 12 # that doesn't require sudo to install and is therefore compatible 13 # with Travis CI's newer container infrastructure. 14 - RACKET_DIR=~/racket 15 matrix: 16 # Supply at least one RACKET_VERSION environment variable. This is 17 # used by the install-racket.sh script (run at before_install, 18 # below) to select the version of Racket to download and install. 19 # 20 # Supply more than one RACKET_VERSION (as in the example below) to 21 # create a Travis-CI build matrix to test against multiple Racket 22 # versions. 23 - RACKET_VERSION=6.7 COVER=false 24 - RACKET_VERSION=6.8 COVER=false 25 - RACKET_VERSION=6.9 COVER=true 26 - RACKET_VERSION=6.10 COVER=true 27 - RACKET_VERSION=6.10.1 COVER=true 28 - RACKET_VERSION=6.11 COVER=true 29 - RACKET_VERSION=6.12 COVER=true 30 - RACKET_VERSION=7.0 COVER=true 31 - RACKET_VERSION=7.1 COVER=true 32 - RACKET_VERSION=7.2 COVER=true 33 - RACKET_VERSION=HEAD COVER=true 34 35 matrix: 36 allow_failures: 37 # - env: RACKET_VERSION=HEAD 38 fast_finish: true 39 40 before_install: 41 - git clone https://github.com/greghendershott/travis-racket.git ~/travis-racket 42 - cat ~/travis-racket/install-racket.sh | bash # pipe to bash not sh! 43 - export PATH="${RACKET_DIR}/bin:${PATH}" #install-racket.sh can't set for us 44 45 install: 46 - raco pkg install --deps search-auto 47 48 before_script: 49 50 # Here supply steps such as raco make, raco test, etc. You can run 51 # `raco pkg install --deps search-auto` to install any required 52 # packages without it getting stuck on a confirmation prompt. 53 script: 54 - raco test -p tr-immutable 55 - raco setup --check-pkg-deps --pkgs tr-immutable 56 - if $COVER; then raco pkg install --deps search-auto doc-coverage; fi 57 - if $COVER; then raco doc-coverage tr-immutable; fi 58 - if $COVER; then raco pkg install --deps search-auto cover cover-codecov; fi 59 - if $COVER; then raco cover -s doc -s test -s main -f codecov -d $TRAVIS_BUILD_DIR/coverage .; fi 60 61 after_success: