TRex: add playground jobs to check build of TRex/docs
[ci-management.git] / jjb / trex / include-raw-trex-build.sh
1 #!/bin/bash -ex
2
3 # emulate unique name for now
4 GERRIT_NEWREV=hash`date +%s%N`
5 WS=${PWD}/$GERRIT_NEWREV
6
7 #  temporary don't fail
8 set +e
9
10 function clean_ws {
11     rm -rf "$WS"
12 }
13 trap clean_ws EXIT
14
15 echo "$WS"
16 clean_ws
17 mkdir "$WS"
18 cd "$WS"
19
20 # cloning
21
22 git clone https://github.com/cisco-system-traffic-generator/trex-core.git
23 git clone https://github.com/cisco-system-traffic-generator/trex-doc.git
24 ls -l
25
26 # building core
27
28 cd trex-core/linux_dpdk
29 ./b configure
30 ./b build
31 cd -
32
33 cd trex-core/linux
34 ./b configure
35 ./b build
36 cd -
37
38 which asciidoc
39 which sphinx-build
40 which dblatex
41 which python
42 which python3
43 which pip
44
45 # building docs
46
47 cd trex-doc
48 ./b configure
49 ./b build
50 cd -
51
52 echo Done
53