-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
99 lines (92 loc) · 2.5 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
88
89
90
91
92
93
94
95
96
97
98
99
language: cpp
matrix:
include:
- os: linux
dist: xenial
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
env:
- BUILD_TYPE=Release
- CONAN_BUILD_TYPE=Release
- COMPILER_LIBCXX=libstdc++11
- CONFIGURATION=Release
- os: linux
dist: xenial
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
env:
- BUILD_TYPE=Debug
- CONAN_BUILD_TYPE=Debug
- COMPILER_LIBCXX=libstdc++11
- CONFIGURATION=Debug
- os: linux
dist: xenial
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
env:
- BUILD_TYPE=Coverage
- CONAN_BUILD_TYPE=Debug
- COMPILER_LIBCXX=libstdc++11
- CONFIGURATION=Debug
- os: osx
osx_image: xcode10.1
compiler: clang
env:
- BUILD_TYPE=Release
- CONAN_BUILD_TYPE=Release
- COMPILER_LIBCXX=libc++
- CONFIGURATION=Release
install:
- if [ $TRAVIS_OS_NAME == linux ]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 90; fi
- if [ $TRAVIS_OS_NAME == linux ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90; fi
- if [[ $TRAVIS_OS_NAME == linux && $BUILD_TYPE == Coverage ]]; then sudo apt-get install lcov; fi
- if [ $TRAVIS_OS_NAME == linux ]; then pip install conan --user; fi
- if [ $TRAVIS_OS_NAME == osx ]; then brew install conan; fi
- conan user
- conan remote add systelab-bintray https://api.bintray.com/conan/systelab/conan
- conan --version
- node --version
- npm --version
script:
- mkdir -p build
- cd build
- conan install .. -s build_type=${CONAN_BUILD_TYPE} -s compiler.libcxx=${COMPILER_LIBCXX}
- cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
- make
- if [ $TRAVIS_OS_NAME == osx ]; then cp -f bin/SeedCpp/*.dylib /usr/local/lib; fi
- cd bin
- cd SeedCppCoreUnitTest
- ./SeedCppCoreUnitTest
- cd ..
- cd DatabaseIntegrationTest
- ./DatabaseIntegrationTest
- cd ..
- cd ..
- if [[ $TRAVIS_OS_NAME == linux && $BUILD_TYPE == Coverage ]]; then make AutomatedTestCoverage; fi
- cd ..
- cd test
- cd RESTAPITest
- npm install --no-audit
- npm run test
- cd ..
- cd ..
after_success:
- if [[ $TRAVIS_OS_NAME == linux && $BUILD_TYPE == Coverage ]]; then bash <(curl -s https://codecov.io/bash); fi