Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 0dc0c27

Browse files
authored
Merge pull request #33 from phillyb7/master
Added .travis.yml for continuous integration
2 parents b208546 + 1f9d3ab commit 0dc0c27

File tree

2 files changed

+30
-14
lines changed

2 files changed

+30
-14
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: go
2+
3+
before-install:
4+
- sudo apt-get update -qq
5+
6+
script:
7+
- make install
8+
- make
9+
- make clean

Makefile

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,24 @@ ifeq ($(PKG),rpm)
119119
./usr/share/vpp/api/vhost_user.api.json \
120120
./usr/share/vpp/api/vpe.api.json
121121
else ifeq ($(PKG),deb)
122-
@cd tmpvpp && wget https://nexus.fd.io/content/repositories/fd.io.stable.$(VPPVERSION).ubuntu.xenial.main/io/fd/vpp/vpp/$(VPPDOTVERSION)-release_amd64/vpp-$(VPPDOTVERSION)-release_amd64-deb.deb
123-
@cd tmpvpp && wget https://nexus.fd.io/content/repositories/fd.io.stable.$(VPPVERSION).ubuntu.xenial.main/io/fd/vpp/vpp-lib/$(VPPDOTVERSION)-release_amd64/vpp-lib-$(VPPDOTVERSION)-release_amd64-deb.deb
124-
@cd tmpvpp && wget https://nexus.fd.io/content/repositories/fd.io.stable.$(VPPVERSION).ubuntu.xenial.main/io/fd/vpp/vpp-dev/$(VPPDOTVERSION)-release_amd64/vpp-dev-$(VPPDOTVERSION)-release_amd64-deb.deb
125-
@cd tmpvpp && wget https://nexus.fd.io/content/repositories/fd.io.stable.$(VPPVERSION).ubuntu.xenial.main/io/fd/vpp/vpp-plugins/$(VPPDOTVERSION)-release_amd64/vpp-plugins-$(VPPDOTVERSION)-release_amd64-deb.deb
126-
@cd tmpvpp && dpkg-deb --fsys-tarfile vpp-dev-$(VPPDOTVERSION)-release_amd64-deb.deb | tar -x \
122+
@cd tmpvpp && wget --content-disposition https://packagecloud.io/fdio/release/packages/ubuntu/xenial/vpp_$(VPPDOTVERSION)-release_amd64.deb/download.deb
123+
@cd tmpvpp && wget --content-disposition https://packagecloud.io/fdio/release/packages/ubuntu/xenial/vpp-dev_$(VPPDOTVERSION)-release_amd64.deb/download.deb
124+
@cd tmpvpp && wget --content-disposition https://packagecloud.io/fdio/release/packages/ubuntu/xenial/libvppinfra_$(VPPDOTVERSION)-release_amd64.deb/download.deb
125+
@cd tmpvpp && wget --content-disposition https://packagecloud.io/fdio/release/packages/ubuntu/xenial/vpp-plugin-core_$(VPPDOTVERSION)-release_amd64.deb/download.deb
126+
@cd tmpvpp && dpkg-deb --fsys-tarfile vpp-dev_$(VPPDOTVERSION)-release_amd64.deb | tar -x \
127127
./usr/include/vpp-api/client/vppapiclient.h
128-
@cd tmpvpp && dpkg-deb --fsys-tarfile vpp-lib-$(VPPDOTVERSION)-release_amd64-deb.deb | tar -x \
129-
./usr/lib/x86_64-linux-gnu/libvppapiclient.so.0.0.0
130-
@cd tmpvpp && dpkg-deb --fsys-tarfile vpp-$(VPPDOTVERSION)-release_amd64-deb.deb | tar -x \
131-
./usr/share/vpp/api/interface.api.json \
132-
./usr/share/vpp/api/l2.api.json \
133-
./usr/share/vpp/api/vhost_user.api.json \
134-
./usr/share/vpp/api/vpe.api.json
135-
@cd tmpvpp && dpkg-deb --fsys-tarfile vpp-plugins-$(VPPDOTVERSION)-release_amd64-deb.deb | tar -x \
136-
./usr/share/vpp/api/memif.api.json
128+
@cd tmpvpp && dpkg-deb --fsys-tarfile libvppinfra_$(VPPDOTVERSION)-release_amd64.deb | tar -x \
129+
./usr/lib/x86_64-linux-gnu/libvppinfra.so.$(VPPDOTVERSION)
130+
@cd tmpvpp && dpkg-deb --fsys-tarfile vpp_$(VPPDOTVERSION)-release_amd64.deb | tar -x \
131+
./usr/share/vpp/api/core/interface.api.json \
132+
./usr/share/vpp/api/core/l2.api.json \
133+
./usr/share/vpp/api/core/vhost_user.api.json \
134+
./usr/share/vpp/api/core/vpe.api.json \
135+
./usr/lib/x86_64-linux-gnu/libsvm.so.$(VPPDOTVERSION) \
136+
./usr/lib/x86_64-linux-gnu/libvlibmemoryclient.so.$(VPPDOTVERSION) \
137+
./usr/lib/x86_64-linux-gnu/libvppapiclient.so.$(VPPDOTVERSION)
138+
@cd tmpvpp && dpkg-deb --fsys-tarfile vpp-plugin-core_$(VPPDOTVERSION)-release_amd64.deb | tar -x \
139+
./usr/share/vpp/api/plugins/memif.api.json
137140
endif
138141
@$(SUDO) -E mkdir -p /usr/include/vpp-api/client/
139142
@$(SUDO) -E cp tmpvpp/usr/include/vpp-api/client/vppapiclient.h /usr/include/vpp-api/client/.
@@ -163,7 +166,11 @@ endif
163166
@$(SUDO) -E chown -R bin:bin $(VPPLIBDIR)/libvppinfra.so*
164167
@echo Installed $(VPPLIBDIR)/libsvm.so $(VPPLIBDIR)/libvlibmemoryclient.so $(VPPLIBDIR)/libvppapiclient.so $(VPPLIBDIR)/libvppinfra.so
165168
@$(SUDO) -E mkdir -p /usr/share/vpp/api/
169+
ifeq ($(PKG),rpm)
166170
@$(SUDO) -E cp tmpvpp/usr/share/vpp/api/*.json /usr/share/vpp/api/.
171+
else ifeq ($(PKG),deb)
172+
@$(SUDO) -E cp tmpvpp/usr/share/vpp/api/core/*.json /usr/share/vpp/api/.
173+
endif
167174
@$(SUDO) -E chown -R bin:bin /usr/share/vpp/
168175
@echo Installed /usr/share/vpp/api/*.json
169176
@rm -rf tmpvpp

0 commit comments

Comments
 (0)