forked from treefrogframework/treefrog-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (40 loc) · 979 Bytes
/
.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
language: cpp
matrix:
include:
- os: osx
osx_image: xcode11.2
sudo: required
env:
- CONFIG_SHARED_MONGOC="--enable-shared-mongoc"
- os: osx
osx_image: xcode9.4
sudo: required
env:
- CONFIG_SHARED_MONGOC=""
env:
global:
- CI_WORK=$(pwd)
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install qt mongo-c-driver; brew link --force qt; brew link mongo-c-driver; fi
install:
- cd ${CI_WORK}
- qmake -v
- ./configure --prefix=/usr/local ${CONFIG_SHARED_MONGOC}
- make -j4 -C src
- sudo make -C src install
- make -j4 -C tools
- sudo make -C tools install
- treefrog -v
before_script:
- cd ${CI_WORK}
- cd tools/tmake/test
- qmake tmaketest.pro
- make
script:
- cd ${CI_WORK}
- ./src/test/testall.sh
- cd ${CI_WORK}/tools/tmake/test
- ./tmaketest
- cd ${CI_WORK}/tools/test
- ./releasetest/releasetest