Skip to content

Commit b99229f

Browse files
committed
travis: run tests in parallel jobs
Signed-off-by: Thiery Ouattara <[email protected]> closes outscale#437
1 parent c2b72d7 commit b99229f

File tree

3 files changed

+91
-74
lines changed

3 files changed

+91
-74
lines changed

Diff for: .travis.sh

-60
This file was deleted.

Diff for: .travis.yml

+49-14
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,54 @@ before_install:
1919
- cd lizard
2020
- sudo python setup.py install
2121
- cd ~
22-
- git clone http://dpdk.org/git/dpdk
23-
- cd dpdk
24-
- git checkout -b v18.08 v18.08
25-
- export RTE_SDK=~/dpdk
26-
- make config T=x86_64-native-linuxapp-clang
27-
- sed -i -e "s/CONFIG_RTE_LIBRTE_PMD_PCAP=n/CONFIG_RTE_LIBRTE_PMD_PCAP=y/" build/.config
28-
- make EXTRA_CFLAGS='-fPIC'
2922

23+
stages:
24+
- Build
25+
- Style
26+
- Integration
27+
- Doc
28+
29+
jobs:
30+
include:
31+
- stage: Build
32+
script:
33+
- ./.travis_build_dpdk_pg.sh
34+
35+
- stage: Style
36+
script:
37+
- make style
38+
39+
- stage: Integration
40+
script:
41+
- ./tests/antispoof/test.sh
42+
- ./tests/core/test.sh
43+
- ./tests/diode/test.sh
44+
- ./tests/firewall/test.sh
45+
- ./tests/nic/test.sh
46+
- ./tests/print/test.sh
47+
- ./tests/queue/test.sh
48+
- ./tests/switch/test.sh
49+
- ./tests/vtep/test.sh
50+
- ./tests/rxtx/test.sh
51+
- ./tests/pmtud/test.sh
52+
- ./tests/tap/test.sh
53+
- ./tests/ip-fragment/test.sh
54+
- ./tests/thread/test.sh
55+
56+
- ./tests/antispoof/bench.sh
57+
- ./tests/core/bench.sh
58+
- ./tests/diode/bench.sh
59+
- ./tests/firewall/bench.sh
60+
- ./tests/nic/bench.sh
61+
- ./tests/print/bench.sh
62+
- ./tests/queue/bench.sh
63+
- ./tests/switch/bench.sh
64+
- ./tests/vtep/bench.sh
65+
- ./tests/rxtx/bench.sh
66+
- ./tests/pmtud/bench.sh
67+
- ./tests/tap/bench.sh
68+
- ./tests/ip-fragment/bench.sh
69+
70+
- stage: Doc
3071
script:
31-
- cd $TRAVIS_BUILD_DIR
32-
- git config user.name "${GH_USER_NAME}"
33-
- git config user.email "${USER_MAIL}"
34-
- ./autogen.sh
35-
- export LD="llvm-link"
36-
- ./configure_clang --with-benchmarks --with-examples
37-
- ./.travis.sh
72+
- make doc

Diff for: .travis_build_dpdk_pg.sh

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
set -x
3+
set -e
4+
5+
git clone http://dpdk.org/git/dpdk
6+
cd dpdk
7+
git checkout -b v18.08 v18.08
8+
export RTE_SDK=~/dpdk
9+
make config T=x86_64-native-linuxapp-clang
10+
sed -i -e "s/CONFIG_RTE_LIBRTE_PMD_PCAP=n/CONFIG_RTE_LIBRTE_PMD_PCAP=y/" build/.config
11+
make EXTRA_CFLAGS='-fPIC'
12+
13+
cd $TRAVIS_BUILD_DIR
14+
git config user.name "${GH_USER_NAME}"
15+
git config user.email "${USER_MAIL}"
16+
./autogen.sh
17+
export LD="llvm-link"
18+
./configure_clang --with-benchmarks --with-examples
19+
20+
make
21+
22+
make tests-antispoof
23+
make tests-core
24+
make tests-diode
25+
make tests-firewall
26+
make tests-integration
27+
make tests-nic
28+
make tests-print
29+
make tests-queue
30+
make tests-switch
31+
make tests-vhost
32+
make tests-vtep
33+
make tests-rxtx
34+
make tests-pmtud
35+
make tests-tap
36+
make tests-ip-fragment
37+
make tests-thread
38+
39+
if [ ! -e "/usr/bin/doxygen" ]; then
40+
sudo curl https://osu.eu-west-2.outscale.com/jerome.jutteau/16d1bc0517de5c95aa076a0584b43af6/doxygen.sh -o /usr/bin/doxygen
41+
sudo chmod +x /usr/bin/doxygen
42+
fi

0 commit comments

Comments
 (0)