diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/.travis.yml b/.travis.yml index ae3d50b2..787a6e39 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -2,14 +2,14 @@ language: c | |||
2 | 2 | ||
3 | matrix: | 3 | matrix: |
4 | include: | 4 | include: |
5 | - env: BUILD=hstox | 5 | - env: BUILD=hstox ENV=linux |
6 | language: haskell | 6 | language: haskell |
7 | ghc: 7.8 | 7 | ghc: 7.8 |
8 | - env: BUILD=toxcore | 8 | - env: BUILD=toxcore ENV=linux |
9 | compiler: clang | 9 | compiler: clang |
10 | - env: BUILD=toxcore | 10 | - env: BUILD=toxcore ENV=linux |
11 | compiler: gcc | 11 | compiler: gcc |
12 | - env: BUILD=autotools | 12 | - env: BUILD=autotools ENV=linux |
13 | compiler: clang | 13 | compiler: clang |
14 | 14 | ||
15 | addons: | 15 | addons: |
@@ -24,25 +24,22 @@ addons: | |||
24 | 24 | ||
25 | cache: | 25 | cache: |
26 | directories: | 26 | directories: |
27 | # Although Travis documentation says not to rely on the value of $HOME, we | ||
28 | # rely on it here because cabal installs its packages there by default. If | ||
29 | # that ever changes, these values need to be updated. | ||
30 | # Note that we can't use shell expressions in these paths, so we can't ask | ||
31 | # cabal where its data is stored. | ||
27 | - $HOME/.cabal | 32 | - $HOME/.cabal |
28 | - $HOME/.ghc | 33 | - $HOME/.ghc |
29 | - $HOME/cache | 34 | - $HOME/cache |
30 | 35 | ||
31 | install: | 36 | install: other/travis/${BUILD}-install |
32 | # Globally used environment variables. | 37 | script: other/travis/${BUILD}-script |
33 | - export CACHE_DIR=$HOME/cache | 38 | after_script: other/travis/${BUILD}-after_script |
34 | - export OPAMROOT=$CACHE_DIR/.opam | ||
35 | - export LD_LIBRARY_PATH=$CACHE_DIR/lib | ||
36 | - export PKG_CONFIG_PATH=$CACHE_DIR/lib/pkgconfig | ||
37 | - export ASTYLE=$CACHE_DIR/astyle/build/gcc/bin/astyle | ||
38 | # Install required packages. | ||
39 | - other/travis/${BUILD}-install | ||
40 | |||
41 | script: | ||
42 | - other/travis/${BUILD}-script | ||
43 | |||
44 | after_script: | ||
45 | - other/travis/${BUILD}-after_script | ||
46 | 39 | ||
47 | notifications: | 40 | notifications: |
48 | irc: "chat.freenode.net#toktok-status" | 41 | irc: "chat.freenode.net#toktok-status" |
42 | |||
43 | branches: | ||
44 | only: | ||
45 | - master | ||