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 6, 2018
1 parent c2b72d7 commit 60e6d2e
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 75 deletions.
60 changes: 0 additions & 60 deletions .travis.sh

This file was deleted.

63 changes: 48 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,52 @@ before_install:
- 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
stages:
- Build
- Style
#- Integration
#- Doc

jobs:
include:
- stage: Build
script: ./.travis_build_dpdk_pg.sh

- stage: Style
script: make style
#
# - stage: Integration
#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
# - ./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

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 60e6d2e

Please sign in to comment.