-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
79 lines (70 loc) · 2.88 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
language: c
# Based from: https://github.com/greghendershott/travis-racket
# Optional: Remove to use Travis CI's older infrastructure.
sudo: false
env:
global:
# Supply a global RACKET_DIR environment variable. This is where
# Racket will be installed. A good idea is to use ~/racket because
# that doesn't require sudo to install and is therefore compatible
# with Travis CI's newer container infrastructure.
- RACKET_DIR=~/racket
matrix:
# Supply at least one RACKET_VERSION environment variable. This is
# used by the install-racket.sh script (run at before_install,
# below) to select the version of Racket to download and install.
#
# Supply more than one RACKET_VERSION (as in the example below) to
# create a Travis-CI build matrix to test against multiple Racket
# versions.
#- RACKET_VERSION=6.0
#- RACKET_VERSION=6.1
#- RACKET_VERSION=6.1.1
# Dependency "custom-load" does not work with 6.2 and 6.3
#- RACKET_VERSION=6.2
# Collection scribble/example is not available yet in 6.3
#- RACKET_VERSION=6.3
# Scribble bug in 6.4 which got fixed in 6.5
#- RACKET_VERSION=6.4
- RACKET_VERSION=6.5
- RACKET_VERSION=6.6
- RACKET_VERSION=6.7
- RACKET_VERSION=6.8
- RACKET_VERSION=6.9
- RACKET_VERSION=6.10
- RACKET_VERSION=6.10.1
- RACKET_VERSION=6.11
- RACKET_VERSION=6.12
- RACKET_VERSION=7.0
- RACKET_VERSION=7.1
- RACKET_VERSION=7.2
- RACKET_VERSION=HEAD
matrix:
allow_failures:
# No support for https://github.com/user/repo.git#commit-hash in info.rkt "deps"
- env: RACKET_VERSION=6.0
- env: RACKET_VERSION=6.1
- env: RACKET_VERSION=6.1.1
- env: RACKET_VERSION=6.2
- env: RACKET_VERSION=6.3
fast_finish: true
before_install:
- git clone https://github.com/greghendershott/travis-racket.git ~/travis-racket
- cat ~/travis-racket/install-racket.sh | bash # pipe to bash not sh!
- export PATH="${RACKET_DIR}/bin:${PATH}" #install-racket.sh can't set for us
install:
- raco pkg install -j 1 --deps search-auto
before_script:
# Here supply steps such as raco make, raco test, etc. You can run
# `raco pkg install --deps search-auto type-expander` to install any required
# packages without it getting stuck on a confirmation prompt.
script:
- raco test -p type-expander
- raco setup --check-pkg-deps --no-zo --no-launcher --no-install --no-post-install --no-docs --pkgs type-expander
- raco pkg install --deps search-auto doc-coverage
- if $RACKET_VERSION != "6.5" -a $RACKET_VERSION != "6.6"; then raco doc-coverage type-expander; fi
after_success:
- raco pkg install --deps search-auto cover cover-coveralls
- raco pkg install --deps search-auto
# TODO: raco cover doesn't support having a "-s <empty>" option, to run the entire module in addition to the specified submodules
- raco cover -b -s doc -s test -s main -f coveralls -d $TRAVIS_BUILD_DIR/coverage .