include-raw-nsh_sfc-pkg-push.sh revision 36985f69
1#!/bin/bash
2# basic build script example
3set -e -o pipefail
4if [ "${OS}" == "ubuntu1404" ]; then
5    # Find the files
6    DEBS=$(find . -type f -iname '*.deb')
7    for i in $DEBS
8    do
9        push_deb "$i"
10    done
11
12    export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
13    export JAVAC=${JAVA_HOME}/bin/javac
14    export PATH=${JAVA_HOME}/bin/:${PATH}
15    cd nsh-plugin/build/java/jvpp
16    $MVN deploy \
17        -gs "$GLOBAL_SETTINGS_FILE" -s "$SETTINGS_FILE"
18    cd -
19
20elif [ "${OS}" == "ubuntu1604" ]; then
21
22    # Find the files
23    DEBS=$(find . -type f -iname '*.deb')
24    for i in $DEBS
25    do
26        push_deb "$i"
27    done
28
29elif [ "${OS}" == "centos7" ]; then
30    # Find the files
31    RPMS=$(find . -type f -iname '*.rpm')
32    SRPMS=$(find . -type f -iname '*.srpm')
33    SRCRPMS=$(find . -type f -name '*.src.rpm')
34    for i in $RPMS $SRPMS $SRCRPMS
35    do
36        push_rpm "$i"
37    done
38fi