File: .travis.yml

package info (click to toggle)
buildbot 2.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 19,328 kB
  • sloc: python: 126,302; sh: 1,005; makefile: 303
file content (74 lines) | stat: -rw-r--r-- 2,209 bytes parent folder | download | duplicates (2)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Travis CI configuration file
# http://about.travis-ci.org/docs/
dist: xenial
addons:
  postgresql: "9.4"
  apt_packages:
    - enchant
    - aspell
    - aspell-en
    - ispell
    - iamerican

services:
  - mysql
  - postgresql

language: python

# Available Python versions:
# http://about.travis-ci.org/docs/user/ci-environment/#Python-VM-images
python:
  - "3.7"

env:
  matrix:
    # we now use travis only for real database testing
    # travis containers do have much more optimized db installations

    - TWISTED=latest SQLALCHEMY=latest TESTS=coverage BUILDBOT_TEST_DB_URL=mysql+mysqldb://travis@127.0.0.1/bbtest?storage_engine=InnoDB
    # Configuration that runs tests with real PostgreSQL database with pg8000 and psycopg2 drivers
    - TWISTED=latest SQLALCHEMY=latest TESTS=coverage BUILDBOT_TEST_DB_URL=postgresql+psycopg2:///bbtest?user=postgres
    - TWISTED=latest SQLALCHEMY=latest TESTS=coverage BUILDBOT_TEST_DB_URL=postgresql+pg8000:///bbtest?user=postgres

# Dependencies installation commands
install:
  - pip install -U pip
  - pip install -r requirements-ci.txt
  - pip install -r requirements-cidb.txt
  - "if [ $TWISTED = trunk ]; then pip install git+https://github.com/twisted/twisted ; fi"
  - "if [ $TWISTED != latest -a  $TWISTED != trunk ]; then pip install Twisted==$TWISTED ; fi"
  - "if [ $SQLALCHEMY != latest ]; then pip install sqlalchemy==$SQLALCHEMY; fi"


before_script:
  # create real MySQL database for tests
  - mysql -e 'create database bbtest;'
  # create real PostgreSQL database for tests
  - psql -c 'create database bbtest;' -U postgres

# Tests running commands
script:
  # run real db tests under coverage to have several merging coverage report
  # https://github.com/codecov/support/wiki/Merging-Reports
  - "if [ $TESTS = coverage ]; then coverage run --rcfile=.coveragerc $(which trial) --reporter=text --rterrors buildbot.test buildbot_worker.test ; fi"


notifications:
  email: false

after_success:
  - "if [ $TESTS = coverage ]; then codecov ; fi"

after_script:
  # List installed packages along with their versions.
  - "pip list"

sudo: false
branches:
  # Only build main-line branches.
  only:
    - master
    - eight
git:
  depth: 300