-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
50 lines (41 loc) · 1.23 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
45
46
47
48
49
50
# See https://github.com/hvr/multi-ghc-travis for more information.
sudo: true
language: c
services:
- mongodb
addons:
apt:
packages:
- libgmp-dev
env:
- ARGS="--resolver lts-6.2"
- ARGS="--resolver lts"
- ARGS="--resolver nightly"
matrix:
allow_failures:
- env: ARGS="--resolver nightly"
before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
# Install openstack client
- travis_retry sudo apt-get install python-pip
- sudo pip install python-openstackclient
script:
- stack $ARGS --no-terminal --install-ghc test --haddock
- stack $ARGS --no-terminal --install-ghc sdist
- stack $ARGS --no-terminal --install-ghc exec keystone&
- sleep 5
- cd tests
- ./run_openstack_tests.sh
cache:
directories:
- $HOME/.stack
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/92e3f35d91084ee2b8ce
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always