-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
57 lines (45 loc) · 1.14 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
51
52
53
54
55
56
57
# -*- coding: utf-8 -*-
#
# Copyright (C) 2018 CERN.
#
# Asclepias Broker is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
notifications:
email: # sent to the committer and the author
on_success: never # default: always
on_failure: always # default: always
language: python
matrix:
fast_finish: true
allow_failures:
- env: REQUIREMENTS=qa
cache:
- pip
services:
- docker
sudo: required
env:
- REQUIREMENTS=prod
- REQUIREMENTS=qa
python:
- "3.6"
before_install:
# Stop default travis services
- "sudo service mysql stop"
- "sudo service postgresql stop"
# Start docker services
- "docker-compose up -d es db cache mq"
- "travis_retry pip install --upgrade pip setuptools py pipenv"
- "travis_retry pip install twine wheel coveralls"
- "travis_retry pip install -U numpy"
install:
- "./scripts/bootstrap --ci"
# Output installed packages
- "pipenv lock --requirements"
before_script:
# Allow services running inside docker to start
- "./docker/wait-for-services.sh"
script:
- ./run-tests.sh
after_success:
- coveralls