.gitlab-ci.yml 2.81 KB
Newer Older
Tom Barbette's avatar
Tom Barbette committed
1
variables:
2
    DPDK_VERSION: "17.08"
Tom Barbette's avatar
Tom Barbette committed
3
    NETMAP_VERSION: "11.1"
4
    CONFIG: "--enable-gtp --enable-json"
Tom Barbette's avatar
Tom Barbette committed
5

6 7
batch:
    script:
Tom Barbette's avatar
Tom Barbette committed
8
        - ./configure CXXFLAGS="-std=gnu++11" --enable-batch $CONFIG --disable-verbose-batch && make && make check
Tom Barbette's avatar
Tom Barbette committed
9 10
autobatch:
    script:
Tom Barbette's avatar
Tom Barbette committed
11
        - ./configure CXXFLAGS="-std=gnu++11" --enable-batch $CONFIG --disable-verbose-batch --enable-auto-batch=port && make && make check
Tom Barbette's avatar
Tom Barbette committed
12

13 14
ip6:
    script:
Tom Barbette's avatar
Tom Barbette committed
15
        - ./configure CXXFLAGS="-std=gnu++11" --enable-ip6 --enable-json $CONFIG --disable-batch && make && make check
16 17
mt:
    script:
Tom Barbette's avatar
Tom Barbette committed
18
        - ./configure CXXFLAGS="-std=gnu++11" --enable-user-multithread $CONFIG --disable-batch && make && make check
19
dpdk-batch:
20
    script:
Tom Barbette's avatar
Tom Barbette committed
21
        - ./configure CXXFLAGS="-std=gnu++11" --enable-user-multithread --without-netmap --enable-dpdk $CONFIG --enable-batch --disable-verbose-batch RTE_SDK=$RTE_SDK RTE_TARGET=$RTE_TARGET && make
22 23 24

dpdk-nobatch:
    script:
Tom Barbette's avatar
Tom Barbette committed
25
        - ./configure CXXFLAGS="-std=gnu++11" --enable-user-multithread --without-netmap --enable-dpdk $CONFIG --disable--batch RTE_SDK=$RTE_SDK RTE_TARGET=$RTE_TARGET && make
26

27 28
netmap_single:
    script:
Tom Barbette's avatar
Tom Barbette committed
29
        - ./configure CXXFLAGS="-std=gnu++11" $CONFIG_NETMAP $CONFIG --disable-verbose-batch && make
30 31
netmap:
    script:
Tom Barbette's avatar
Tom Barbette committed
32
        - ./configure CXXFLAGS="-std=gnu++11" --enable-user-multithread $CONFIG_NETMAP --enable-netmap-pool --enable-zerocopy $CONFIG --disable-verbose-batch && make
33 34
netmap_nopool:
    script:
Tom Barbette's avatar
Tom Barbette committed
35
        - ./configure CXXFLAGS="-std=gnu++11" --enable-user-multithread $CONFIG_NETMAP --disable-netmap-pool --enable-zerocopy $CONFIG --disable-verbose-batch && make && make check
36 37
netmap_nopool_nozc:
    script:
Tom Barbette's avatar
Tom Barbette committed
38
        - ./configure CXXFLAGS="-std=gnu++11" --enable-user-multithread $CONFIG_NETMAP --disable-netmap-pool --disable-zerocopy $CONFIG --disable-verbose-batch && make && make check
Tom Barbette's avatar
Tom Barbette committed
39 40 41 42
cache:
    paths:
        - dpdk-$DPDK_VERSION
        - netmap-$NETMAP_VERSION
43 44
before_script:
    - gcc -v
Tom Barbette's avatar
Tom Barbette committed
45 46 47 48 49
    - export RTE_SDK=`pwd`/dpdk-$DPDK_VERSION;
      export RTE_TARGET=x86_64-native-linuxapp-gcc;
      if [ ! -e "$RTE_SDK/$RTE_TARGET/include/rte_version.h" ]; then
        wget http://dpdk.org/browse/dpdk/snapshot/dpdk-$DPDK_VERSION.tar.gz &&
            tar -zxf dpdk-$DPDK_VERSION.tar.gz &&
Tom Barbette's avatar
Tom Barbette committed
50
            cd dpdk-$DPDK_VERSION ;
Tom Barbette's avatar
Tom Barbette committed
51
            make config T=$RTE_TARGET &&
Tom Barbette's avatar
Tom Barbette committed
52
            make install T=$RTE_TARGET ;
Tom Barbette's avatar
Tom Barbette committed
53 54 55
            cd ..;
      fi;
    - if [ ! -e "netmap-$NETMAP_VERSION/sys/net/netmap.h" ] ; then wget https://github.com/luigirizzo/netmap/archive/v$NETMAP_VERSION.tar.gz && tar -xvf v$NETMAP_VERSION.tar.gz && cd netmap-$NETMAP_VERSION && cd LINUX && ./configure --no-drivers && cd .. && cd .. ; fi
Tom Barbette's avatar
Tom Barbette committed
56
    - ls -al
Tom Barbette's avatar
Tom Barbette committed
57 58
    - if [ `sudo -n whoami` = "root" ] ; then sudo insmod netmap-$NETMAP_VERSION/LINUX/netmap.ko && sudo chmod 666 /dev/netmap ; fi
    - export CONFIG_NETMAP="--with-netmap=`pwd`/netmap-$NETMAP_VERSION/sys/"