forked from griefly/griefly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (48 loc) · 1.26 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
matrix:
include:
- os: linux
sudo: required
dist: trusty
- os: osx
sudo: required
osx_image: xcode9.2
language: cpp
compiler: gcc
services:
- docker
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker pull kremius/griefly-build;
fi
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install gimme;
eval "$(gimme 1.9)";
brew install qt;
brew upgrade python;
brew info qt;
brew info python;
export PATH="/usr/local/opt/qt/bin:$PATH";
export LDFLAGS="-L/usr/local/opt/qt/lib";
export CPPFLAGS="-I/usr/local/opt/qt/include";
fi
before_script:
- "export DISPLAY=:99.0"
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ( sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )& fi
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
./make.sh -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug -DPYTHON_EXECUTABLE:FILEPATH=/usr/local/bin/python3;
cd exec;
./KVEngineTests;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker run -v $TRAVIS_BUILD_DIR:/app
-e TRAVIS
-e TRAVIS_REPO_SLUG
-e TRAVIS_JOB_ID
-e TRAVIS_PULL_REQUEST
-e TRAVIS_BRANCH
-e COVERALLS_TOKEN
kremius/griefly-build /app/build-in-docker.sh;
fi