osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-s1gw/+/37054?usp=email )
Change subject: Makefile,contrib/jenkins: import from osmo-epdg ......................................................................
Makefile,contrib/jenkins: import from osmo-epdg
Add Makefile and contrib/jenkins.sh from osmo-epdg. Add "rebar3 asn compile" to the "build" target, as mentioned in README.md.
Change-Id: Id8d6652c9007f4d565e2e0ca318e3a7b2113ea67 --- A Makefile A contrib/jenkins.sh 2 files changed, 43 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-s1gw refs/changes/54/37054/1
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..47dfca7 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +all: build + +build: + rebar3 asn compile + rebar3 compile + rebar3 escriptize + +run: build + ERL_FLAGS='-config config/sys.config' _build/default/bin/osmo-epdg + +shell: build + rebar3 shell --config ./config/sys.config + +check: + rebar3 eunit + +clean: +# Avoid running rebar3 clean if _build doesn't exist, since it would try +# to fetch deps from the Internet and that may not be avaialble when in +# OBS build. +ifneq ("$(wildcard _build/.*)", "") + rebar3 clean + rm -rf _build/ +else + rm -f src/diameter_*.erl +endif diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh new file mode 100755 index 0000000..df99a89 --- /dev/null +++ b/contrib/jenkins.sh @@ -0,0 +1,5 @@ +#!/bin/sh -ex + +make clean +make +make check