aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: b43e9b2baa552e365e498d7a15853290fd2db8bb (plain)
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
dist: trusty
sudo: false

language: bash

env:
  - PASS_VERSION=1.7.3
  - PASS_VERSION=master

addons:
  apt:
    packages:
      - cabal-install
      - expect
      - ghc
      - oathtool

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

notifications:
  email:
    recipients:
      - tadfisher@gmail.com
    on_success: never
    on_failure: always