forked from rizsotto/Bear
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (54 loc) · 1.11 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
language: python
matrix:
include:
- os: linux
sudo: false
dist: xenial
python: "pypy"
- os: linux
sudo: required
dist: xenial
python: 2.7
- os: linux
sudo: false
dist: xenial
python: 3.6
- os: linux
sudo: false
dist: xenial
python: 3.7
- os: osx
osx_image: xcode7.3
language: generic
- os: osx
osx_image: xcode8
language: generic
addons:
apt:
packages:
- cmake
- scons
- gfortran
- qt4-qmake
before_install:
- uname
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
csrutil status || true;
brew update;
brew install scons;
fi
install:
- pip --version
- pip install --upgrade pip
- pip install lit pycodestyle
script:
- mkdir "$HOME/build"; cd "$HOME/build"
- cmake "$TRAVIS_BUILD_DIR" -DCPACK_GENERATOR="TGZ"
- VERBOSE=1 make all
- VERBOSE=1 make check
- VERBOSE=1 make package
- if [ "$TRAVIS_SUDO" == "true" ]; then
sudo make install;
(cd "$TRAVIS_BUILD_DIR"; git clean -fdx;);
lit -v "$TRAVIS_BUILD_DIR/test";
fi