www

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

.travis.yml (2946B)


      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     # Dependency "custom-load" does not work with 6.2 and 6.3
     27     #- RACKET_VERSION=6.2
     28     # Collection scribble/example is not available yet in 6.3
     29     #- RACKET_VERSION=6.3
     30     # Scribble bug in 6.4 which got fixed in 6.5
     31     #- RACKET_VERSION=6.4
     32     - RACKET_VERSION=6.5
     33     - RACKET_VERSION=6.6
     34     - RACKET_VERSION=6.7
     35     - RACKET_VERSION=6.8
     36     - RACKET_VERSION=6.9
     37     - RACKET_VERSION=6.10
     38     - RACKET_VERSION=6.10.1
     39     - RACKET_VERSION=6.11
     40     - RACKET_VERSION=6.12
     41     - RACKET_VERSION=7.0
     42     - RACKET_VERSION=7.1
     43     - RACKET_VERSION=7.2
     44     - RACKET_VERSION=HEAD
     45 
     46 matrix:
     47   allow_failures:
     48     # No support for https://github.com/user/repo.git#commit-hash in info.rkt "deps"
     49     - env: RACKET_VERSION=6.0
     50     - env: RACKET_VERSION=6.1
     51     - env: RACKET_VERSION=6.1.1
     52     - env: RACKET_VERSION=6.2
     53     - env: RACKET_VERSION=6.3
     54   fast_finish: true
     55 
     56 before_install:
     57 - git clone https://github.com/greghendershott/travis-racket.git ~/travis-racket
     58 - cat ~/travis-racket/install-racket.sh | bash # pipe to bash not sh!
     59 - export PATH="${RACKET_DIR}/bin:${PATH}" #install-racket.sh can't set for us
     60 
     61 install:
     62 - raco pkg install -j 1 --deps search-auto
     63 
     64 before_script:
     65 
     66 # Here supply steps such as raco make, raco test, etc. You can run
     67 # `raco pkg install --deps search-auto type-expander` to install any required
     68 # packages without it getting stuck on a confirmation prompt.
     69 script:
     70  - raco test -p type-expander
     71  - raco setup --check-pkg-deps --no-zo --no-launcher --no-install --no-post-install --no-docs --pkgs type-expander
     72  - raco pkg install --deps search-auto doc-coverage
     73  - if $RACKET_VERSION != "6.5" -a $RACKET_VERSION != "6.6"; then raco doc-coverage type-expander; fi
     74 
     75 after_success:
     76  - raco pkg install --deps search-auto cover cover-coveralls
     77  - raco pkg install --deps search-auto
     78  # TODO: raco cover doesn't support having a "-s <empty>" option, to run the entire module in addition to the specified submodules
     79  - raco cover -b -s doc -s test -s main -f coveralls -d $TRAVIS_BUILD_DIR/coverage .