forked from Ericsson/codechecker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (79 loc) · 3.1 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
language:
- python
services:
- postgresql
matrix:
include:
- os: linux
sudo: required
dist: trusty
python: "2.7"
env: DATABASE=sqlite
- os: linux
sudo: required
dist: trusty
python: "2.7"
env: DATABASE=psql_psycopg2
- os: linux
sudo: required
dist: trusty
python: "2.7"
env: DATABASE=psql_pg8000
- os: osx
osx_image: xcode9.4
sudo: false
language: generic
env: DATABASE=sqlite
- os: osx
osx_image: xcode9.4
sudo: false
language: generic
env: DATABASE=psql_psycopg2
- os: osx
osx_image: xcode9.4
sudo: false
language: generic
env: DATABASE=psql_pg8000
before_install:
# Download macOS specific extra dependencies.
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then git clone https://github.com/llvm-mirror/clang.git ~/llvm --branch master --single-branch --depth 1; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install doxygen; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install [email protected]; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade boost; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install [email protected]; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=/usr/local/Cellar/[email protected]/0.9.3/bin:$PATH; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which thrift; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=/usr/local/opt/[email protected]/bin:$PATH; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PYTHONPATH=~/llvm/tools/scan-build-py/; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=~/llvm/tools/scan-build-py/bin:$PATH; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then chmod a+x ~/llvm/tools/scan-build-py/bin/intercept-build; fi
# Set the proper Clang versions early in the PATH.
- export PATH=$HOME:$PATH
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then which clang; which clang-tidy; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which clang; ln -s $(which clang) $HOME/clang; fi
# PostgreSQL is not started automatically on macOS.
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PG_DATA=$(brew --prefix)/var/postgres; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pg_ctl -w start -l postgres.log --pgdata ${PG_DATA}; cat postgres.log; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cat postgres.log; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then createuser -s postgres; fi
install:
- pip install nose pycodestyle
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip install virtualenv; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cat postgres.log; fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- doxygen
- gcc-multilib
- libc6-dev-i386
- libpq-dev
- thrift-compiler
postgresql: "9.3"
script:
- make clean_travis
- make package
- if [[ ! -z "$DATABASE" ]]; then make test_matrix_${DATABASE}; else make test; fi
- make clean_travis