Skip to content

Commit

Permalink
travis: run tests in parallel jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Thiery Ouattara <[email protected]>

closes outscale#437
  • Loading branch information
outscale-toa committed Dec 7, 2018
1 parent c2b72d7 commit 6bad443
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 76 deletions.
60 changes: 0 additions & 60 deletions .travis.sh

This file was deleted.

62 changes: 46 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,50 @@ before_install:
- git clone https://github.com/terryyin/lizard.git
- cd lizard
- sudo python setup.py install
- cd ~
- git clone http://dpdk.org/git/dpdk
- cd dpdk
- git checkout -b v18.08 v18.08
- export RTE_SDK=~/dpdk
- make config T=x86_64-native-linuxapp-clang
- sed -i -e "s/CONFIG_RTE_LIBRTE_PMD_PCAP=n/CONFIG_RTE_LIBRTE_PMD_PCAP=y/" build/.config
- make EXTRA_CFLAGS='-fPIC'

script:
- cd $TRAVIS_BUILD_DIR
- git config user.name "${GH_USER_NAME}"
- git config user.email "${USER_MAIL}"
- ./autogen.sh
- export LD="llvm-link"
- ./configure_clang --with-benchmarks --with-examples
- ./.travis.sh
- echo "NOMBRE DE COEUR"
- cat /proc/cpuinfo | grep processor | wc -l

#stages:
# - Build
# - Style
# - Integration
#- Doc

jobs:
include:
- stage: Build
script: bash -x ./.travis_build_dpdk_pg.sh
- script: make style
- script: ./tests/antispoof/test.sh
# - ./tests/core/test.sh
# - ./tests/diode/test.sh
# - ./tests/firewall/test.sh
# - ./tests/nic/test.sh
# - ./tests/print/test.sh
# - ./tests/queue/test.sh
# - ./tests/switch/test.sh
# - ./tests/vtep/test.sh
# - ./tests/rxtx/test.sh
# - ./tests/pmtud/test.sh
# - ./tests/tap/test.sh
# - ./tests/ip-fragment/test.sh
# - ./tests/thread/test.sh
#
# - ./tests/antispoof/bench.sh
# - ./tests/core/bench.sh
# - ./tests/diode/bench.sh
# - ./tests/firewall/bench.sh
# - ./ad tests/nic/bench.sh
# - ./tests/print/bench.sh
# - ./tests/queue/bench.sh
# - ./tests/switch/bench.sh
# - ./tests/vtep/bench.sh
# - ./tests/rxtx/bench.sh
# - ./tests/pmtud/bench.sh
# - ./tests/tap/bench.sh
# - ./tests/ip-fragment/bench.sh
#
# - stage: Doc
#script:
# - make doc
42 changes: 42 additions & 0 deletions .travis_build_dpdk_pg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash
set -x
set -e
cd ~
git clone http://dpdk.org/git/dpdk
cd dpdk
git checkout -b v18.08 v18.08
export RTE_SDK=~/dpdk
make config T=x86_64-native-linuxapp-clang
sed -i -e "s/CONFIG_RTE_LIBRTE_PMD_PCAP=n/CONFIG_RTE_LIBRTE_PMD_PCAP=y/" build/.config
make EXTRA_CFLAGS='-fPIC'

cd $TRAVIS_BUILD_DIR
git config user.name "${GH_USER_NAME}"
git config user.email "${USER_MAIL}"
./autogen.sh
export LD="llvm-link"
./configure_clang --with-benchmarks --with-examples

make

make tests-antispoof
make tests-core
make tests-diode
make tests-firewall
make tests-integration
make tests-nic
make tests-print
make tests-queue
make tests-switch
make tests-vhost
make tests-vtep
make tests-rxtx
make tests-pmtud
make tests-tap
make tests-ip-fragment
make tests-thread

if [ ! -e "/usr/bin/doxygen" ]; then
sudo curl https://osu.eu-west-2.outscale.com/jerome.jutteau/16d1bc0517de5c95aa076a0584b43af6/doxygen.sh -o /usr/bin/doxygen
sudo chmod +x /usr/bin/doxygen
fi

0 comments on commit 6bad443

Please sign in to comment.