mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-10-03 23:57:13 +03:00
Test unused on TravisCI
This commit is contained in:
parent
a18d921f6a
commit
51be1c86ae
25
.travis.yml
Normal file
25
.travis.yml
Normal file
@ -0,0 +1,25 @@
|
||||
language: haskell
|
||||
|
||||
sudo: false
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.stack/
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- env: CABALVER=1.22 GHCVER=7.10.3
|
||||
addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3],sources: [hvr-ghc]}}
|
||||
|
||||
before_install:
|
||||
- mkdir -p ~/.local/bin
|
||||
- export PATH=~/.local/bin:$PATH
|
||||
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar -xzO --wildcards '*/stack' > ~/.local/bin/stack
|
||||
- chmod a+x ~/.local/bin/stack
|
||||
|
||||
install:
|
||||
- stack -j 2 setup --no-terminal
|
||||
- stack -j 2 build --only-snapshot --no-terminal
|
||||
|
||||
script:
|
||||
- stack -j 2 build --no-terminal
|
||||
- stack test --no-terminal
|
Loading…
Reference in New Issue
Block a user