aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml15
1 files changed, 12 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index d467dbf..d548c3b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,5 @@
dist: trusty
+sudo: false
language: bash
@@ -8,22 +9,30 @@ env:
addons:
apt:
- sources:
- - debian-sid
packages:
+ - cabal-install
- expect
+ - ghc
- oathtool
- - shellcheck
before_script:
- wget https://git.zx2c4.com/password-store/snapshot/password-store-$PASS_VERSION.tar.xz
- tar -xvf password-store-$PASS_VERSION.tar.xz
- ln -s password-store-$PASS_VERSION/src/password-store.sh pass
+ - if [ ! -f "${HOME}/.cabal/bin/shellcheck" ]; then cabal update; cabal install ShellCheck; fi
+ - ln -s "${HOME}/.cabal/bin/shellcheck" shellcheck
- export PATH=$PATH:.
- export TEST_OPTS="-v"
install: true
+before_cache:
+ - rm $HOME/.cabal/logs/build.log
+
+cache:
+ directories:
+ - $HOME/.cabal
+
script:
- make lint
- cd test && make all