-
Notifications
You must be signed in to change notification settings - Fork 100
/
.travis.yml
45 lines (39 loc) · 1.18 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
sudo: required
language: generic
# Vim plugin installation hangs on Travis OS X.
# Disabling mac builds for now.
# matrix:
# include:
# - os: osx
# osx_image: xcode8
before_install:
- mkdir -p $HOME/.local/bin
- mkdir -p $HOME/.config/haskell-vim-now
- export PATH=$HOME/.local/bin:$PATH
- git config --global user.email "[email protected]"
- git config --global user.name "Testy McTesterton"
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
brew install haskell-stack ctags vim
fi
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
curl -sSL https://get.haskellstack.org/ | sh
stack --version
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 575159689BEFB442
sudo add-apt-repository ppa:nmi/vim-snapshots -y
sudo apt-get -qq update -y
sudo apt-get install vim ctags -y
fi
# emulating upgrade procedure (due to install.sh cloning from begriffs/master)
- cp -r $TRAVIS_BUILD_DIR $XDG_CONFIG_HOME/
env:
- XDG_CONFIG_HOME=$HOME/.config
script:
- bash install.sh --no-hoogle --dry-run
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
- $HOME/.local/bin