-
Notifications
You must be signed in to change notification settings - Fork 46
/
travis-build.sh
executable file
·157 lines (119 loc) · 1.72 KB
/
travis-build.sh
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
#!/bin/bash
set -e
echo "Building Chapter 1..."
pushd chapter1
pushd helloworld
make -f Makefile
echo "[TEST]"
python -c "import helloworld"
popd
echo
pushd ownmodule
make -f Makefile
echo "[TEST]"
python -c "import mycodepy"
popd
echo
popd
echo "Building Chapter 2..."
pushd chapter2
pushd cpy-public
make -f Makefile
echo "[TEST]"
./publicTest
popd
echo
pushd cpy-logging
make -f Makefile
echo "[TEST]"
./example log.file
popd
echo
pushd cpy-configparser
make -f Makefile
echo "[TEST]"
./example sample.cfg
popd
echo
pushd cpy-cdef-reference
echo "[TEST]"
make -f Makefile
./example
popd
echo
pushd messaging-server
cd server4
make -f Makefile
cd ../
popd
echo
popd
echo "Building Chapter 3..."
pushd chapter3
pushd primes
make -f Makefile
echo "[TEST]"
python pyprimes.py
./primes
popd
echo
pushd memory
make -f Makefile
echo "[TEST]"
python main.py
popd
echo
pushd function-pointers
make -f Makefile
echo "[TEST]"
./fptrs
popd
echo
pushd tmux-project
cd tmux-1.8
./autogen.sh
./configure --prefix=$HOME --enable-python
make
cd ../
popd
echo
popd
echo "Building chapter 4..."
pushd chapter4
pushd bool
make -f Makefile
echo "[TEST]"
./test
popd
echo
pushd exceptions
make -f Makefile
echo "[TEST]"
./test
popd
pushd pointer
make -f Makefile
echo "[TEST]"
python main.py
popd
echo
popd
echo "Building chapter 5..."
pushd chapter5
pushd cppalloc
make -f Makefile
echo "[TEST]"
./test
popd
pushd cppnamespace
make -f Makefile
echo "[TEST]"
./test
popd
pushd cppoverloading
make -f Makefile
echo "[TEST]"
./test
popd
echo
popd