forked from HerikLyma/CPPWebFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
136 lines (108 loc) · 3.02 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
language: cpp
env:
- COVERALLS_REPO_TOKEN=KPDH1Nr3wpZZiXko19X4tkSjcvBUlNoSH
os:
- linux
- osx
compiler:
- gcc
- clang
sudo: required
dist: trusty
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt5; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link --force qt5; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pip install --user cpp-coveralls; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install lcov; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository ppa:beineri/opt-qt571-trusty -y; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq qt57base; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH=$PATH:/opt/qt57/bin; fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then source qt57-env.sh; fi
- cd CPPWebFramework/cwf
- mv cppwebframework_global.h cppwebframework_global.h.1
- mv cppwebframework_global.h.2 cppwebframework_global.h
- cd ..
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then qmake UnitTests.pro; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make -j 8; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./UnitTests; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then rm *tst_*; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then rm main*; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then rm moc*; fi
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then coveralls --exclude lib --exclude tests --exclude *Qt* --exclude */usr/* --gcov-options '\-lp'; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make clean; fi
- cd cwf
- mv cppwebframework_global.h cppwebframework_global.h.2
- mv cppwebframework_global.h.1 cppwebframework_global.h
- cd ..
- qmake CPPWebFramework.pro
- make -j 8
- sudo make install
- cd ..
- cd examples
- cd HelloWorld
- qmake HelloWorld.pro
- make -j 8
- cd ..
- cd ShowFile
- qmake ShowFile.pro
- make -j 8
- cd ..
- cd SaveFiles
- qmake SaveFiles.pro
- make -j 8
- cd ..
- cd Sessions
- qmake Sessions.pro
- make -j 8
- cd ..
- cd Filters
- qmake Filters.pro
- make -j 8
- cd ..
- cd CSTLOutExample
- qmake CSTLOutExample.pro
- make
- cd ..
- cd CSTLForExample
- qmake CSTLForExample.pro
- make -j 8
- cd ..
- cd CSTLIfExample
- qmake CSTLIfExample.pro
- make -j 8
- cd ..
- cd FillObjectBMI
- qmake FillObjectBMI.pro
- make -j 8
- cd ..
- cd CSTLImportExample
- qmake CSTLImportExample.pro
- make -j 8
- cd ..
- cd WebServices
- qmake WebServices.pro
- make -j 8
- cd ..
- cd CRUDRestWebService
- qmake CRUDRestWebService.pro
- make -j 8
- cd ..
- cd HelloWorldFilter
- qmake HelloWorldFilter.pro
- make -j 8
- cd ..
- cd HelloMVC
- qmake HelloMVC.pro
- make -j 8
- cd ..
- cd RESTWebService
- qmake RESTWebService.pro
- make -j 8
- cd ..
- cd ORM
- qmake ORM.pro
- make -j 8