Skip to content

Commit cdb1d09

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

File tree

3 files changed

+87
-76
lines changed

3 files changed

+87
-76
lines changed

Diff for: .travis.sh

-60
This file was deleted.

Diff for: .travis.yml

+45-16
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,49 @@ before_install:
1818
- git clone https://github.com/terryyin/lizard.git
1919
- cd lizard
2020
- sudo python setup.py install
21-
- 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'
29-
30-
script:
3121
- 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
22+
- cat /proc/cpuinfo | grep processor | wc -l
23+
24+
#stages:
25+
# - Build
26+
# - Style
27+
# - Integration
28+
#- Doc
29+
30+
jobs:
31+
include:
32+
- stage: Build
33+
script: bash -x ./.travis_build_dpdk_pg.sh
34+
- script: make style
35+
- script: ./tests/antispoof/test.sh
36+
# - ./tests/core/test.sh
37+
# - ./tests/diode/test.sh
38+
# - ./tests/firewall/test.sh
39+
# - ./tests/nic/test.sh
40+
# - ./tests/print/test.sh
41+
# - ./tests/queue/test.sh
42+
# - ./tests/switch/test.sh
43+
# - ./tests/vtep/test.sh
44+
# - ./tests/rxtx/test.sh
45+
# - ./tests/pmtud/test.sh
46+
# - ./tests/tap/test.sh
47+
# - ./tests/ip-fragment/test.sh
48+
# - ./tests/thread/test.sh
49+
#
50+
# - ./tests/antispoof/bench.sh
51+
# - ./tests/core/bench.sh
52+
# - ./tests/diode/bench.sh
53+
# - ./tests/firewall/bench.sh
54+
# - ./ad tests/nic/bench.sh
55+
# - ./tests/print/bench.sh
56+
# - ./tests/queue/bench.sh
57+
# - ./tests/switch/bench.sh
58+
# - ./tests/vtep/bench.sh
59+
# - ./tests/rxtx/bench.sh
60+
# - ./tests/pmtud/bench.sh
61+
# - ./tests/tap/bench.sh
62+
# - ./tests/ip-fragment/bench.sh
63+
#
64+
# - stage: Doc
65+
#script:
66+
# - 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+
cd ~
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)