Skip to content

Commit

Permalink
Update travis-build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tomflynn committed Apr 10, 2020
1 parent 689abdc commit 3a7e0df
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .travis/travis-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,24 @@ sudo find lib -name "*.h" -exec cp --parents -t "/usr/local/include/openvswitch/
popd

git clone https://github.com/noironetworks/3rdparty-debian.git
cp 3rdparty-debian/prometheus/prometheus-cpp.patch ~
git clone https://github.com/jupp0r/prometheus-cpp.git
pushd prometheus-cpp
git checkout 9effb90b0c266316358680cbf862a8564eb2c2d4
git submodule init
git submodule update
git apply /3rdparty-debian/prometheus/prometheus-cpp.patch
git apply ~/prometheus-cpp.patch
mkdir _build && cd _build
cmake .. -DBUILD_SHARED_LIBS=ON &> /dev/null
make $make_args &> /dev/null
make install &> /dev/null
make $make_args
make install
ls -l /usr/local/lib64
mv /usr/local/lib64/libprometheus-cpp-* /usr/local/lib/
popd

pushd agent-ovs
./autogen.sh &> /dev/null
./configure --enable-coverage --enable-prometheus &> /dev/null
./configure --enable-coverage --enable-prometheus
make -j2
sudo make install
make check
Expand Down

0 comments on commit 3a7e0df

Please sign in to comment.