www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

.travis.yml (1836B)


      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.0
     24     - RACKET_VERSION=6.1
     25     - RACKET_VERSION=6.1.1
     26     - RACKET_VERSION=6.2
     27     - RACKET_VERSION=6.3
     28     - RACKET_VERSION=6.4
     29     - RACKET_VERSION=HEAD
     30 
     31 matrix:
     32   allow_failures:
     33 #   - env: RACKET_VERSION=HEAD
     34   fast_finish: true
     35 
     36 before_install:
     37 - git clone https://github.com/greghendershott/travis-racket.git ~/travis-racket
     38 - cat ~/travis-racket/install-racket.sh | bash # pipe to bash not sh!
     39 - export PATH="${RACKET_DIR}/bin:${PATH}" #install-racket.sh can't set for us
     40 
     41 install:
     42  - raco pkg install --deps search-auto
     43 
     44 before_script:
     45 
     46 # Here supply steps such as raco make, raco test, etc.  You can run
     47 # `raco pkg install --deps search-auto` to install any required
     48 # packages without it getting stuck on a confirmation prompt.
     49 script:
     50  - raco test -x -p test-tag-prefix
     51 
     52 after_success:
     53  - raco setup --check-pkg-deps --pkgs test-tag-prefix
     54  - raco pkg install --deps search-auto cover cover-coveralls
     55  - raco cover -b -f coveralls -d $TRAVIS_BUILD_DIR/coverage .