diff --git a/.travis.sh b/.travis.sh deleted file mode 100755 index 9eaf440ed..000000000 --- a/.travis.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash -set -x -set -e - -make - -make style - -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 - -make doc - -./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 diff --git a/.travis.yml b/.travis.yml index bffe87258..b27c87dc9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/.travis_build_dpdk_pg.sh b/.travis_build_dpdk_pg.sh new file mode 100755 index 000000000..6c2444086 --- /dev/null +++ b/.travis_build_dpdk_pg.sh @@ -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