.travis.yml (3454B)
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 COVER=false 26 - RACKET_VERSION=6.2 COVER=false 27 - RACKET_VERSION=6.3 COVER=false 28 - RACKET_VERSION=6.4 COVER=false 29 - RACKET_VERSION=6.5 COVER=false 30 - RACKET_VERSION=6.6 COVER=false 31 - RACKET_VERSION=6.7 COVER=false 32 - RACKET_VERSION=6.8 COVER=false 33 - RACKET_VERSION=6.9 COVER=true 34 - RACKET_VERSION=6.10 COVER=true 35 - RACKET_VERSION=6.10.1 COVER=true 36 - RACKET_VERSION=6.11 COVER=true 37 - RACKET_VERSION=6.12 COVER=true 38 - RACKET_VERSION=7.0 COVER=true 39 - RACKET_VERSION=7.1 COVER=true 40 - RACKET_VERSION=7.2 COVER=true 41 - RACKET_VERSION=7.3 COVER=true 42 - RACKET_VERSION=7.4 COVER=true 43 - RACKET_VERSION=7.5 COVER=true 44 - RACKET_VERSION=7.6 COVER=true 45 - RACKET_VERSION=7.7 COVER=true 46 - RACKET_VERSION=7.8 COVER=true 47 - RACKET_VERSION=7.9 COVER=true 48 - RACKET_VERSION=8.0 COVER=true 49 - RACKET_VERSION=8.0 RACKET_CS=1 COVER=true 50 - RACKET_VERSION=HEAD COVER=true 51 52 matrix: 53 allow_failures: 54 # - env: RACKET_VERSION=HEAD 55 fast_finish: true 56 57 branches: 58 only: 59 - master 60 - dev 61 62 addons: 63 apt: 64 packages: 65 #- asymptote 66 #- texlive-binaries 67 - texlive-latex-recommended 68 - texlive-latex-extra 69 - texlive-fonts-recommended 70 - texlive-fonts-extra 71 72 before_install: 73 - sudo apt -y install texlive-full 74 - git clone https://github.com/greghendershott/travis-racket.git ~/travis-racket 75 - cat ~/travis-racket/install-racket.sh | bash # pipe to bash not sh! 76 - export PATH="${RACKET_DIR}/bin:${PATH}" #install-racket.sh can't set for us 77 78 install: 79 - raco pkg install --deps search-auto 80 81 before_script: 82 83 # Here supply steps such as raco make, raco test, etc. You can run 84 # `raco pkg install --deps search-auto` to install any required 85 # packages without it getting stuck on a confirmation prompt. 86 script: 87 - raco test -p scribble-math 88 - scribble --pdf scribblings/scribble-math.scrbl 89 - raco setup --check-pkg-deps --no-zo --no-launcher --no-install --no-post-install --no-docs --pkgs scribble-math 90 91 after_success: 92 - if $COVER; then raco pkg install --deps search-auto cover cover-coveralls; fi 93 - if $COVER; then raco cover -b -f coveralls -d $TRAVIS_BUILD_DIR/coverage .; fi