blob: 51f53bbb0b7acd96cd1da04a59551cee37a7ca43 [file] [log] [blame]
Abukar Mohamed97e8d9a2019-05-02 06:11:43 +00001
Abukar Mohamed193caf92019-04-11 13:51:07 +00002# Copyright (c) 2019 AT&T Intellectual Property.
3# Copyright (c) 2019 Nokia.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
Abukar Mohamed97e8d9a2019-05-02 06:11:43 +000017.DEFAULT: go-build
18
19default: go-build
20
21build: go-build
22
23test: go-test
Abukar Mohamed193caf92019-04-11 13:51:07 +000024
25#------------------------------------------------------------------------------
26#
Abukar Mohamed97e8d9a2019-05-02 06:11:43 +000027# Build and test targets
28#
29#------------------------------------------------------------------------------
Abukar Mohamed193caf92019-04-11 13:51:07 +000030ROOT_DIR:=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))
31BUILD_DIR:=$(abspath $(ROOT_DIR)/build)
32
Abukar Mohamed97e8d9a2019-05-02 06:11:43 +000033
34XAPP_NAME:=appmgr
35XAPP_ROOT:=cmd
36XAPP_TESTENV:="RMR_SEED_RT=config/uta_rtg.rt CFG_FILE=$(ROOT_DIR)helm_chart/uemgr/descriptors/config-file.json"
37include build/make.go.mk
38
39
40#------------------------------------------------------------------------------
41#
42# DOCKER TARGETS
43#
44#------------------------------------------------------------------------------
45
Abukar Mohamed193caf92019-04-11 13:51:07 +000046HELMVERSION:=v2.13.0-rc.1
Abukar Mohamed97e8d9a2019-05-02 06:11:43 +000047DCKR_B_OPTS:=${DCKR_B_OPTS} --build-arg HELMVERSION=${HELMVERSION}
Abukar Mohamed193caf92019-04-11 13:51:07 +000048
Abukar Mohamed97e8d9a2019-05-02 06:11:43 +000049PACKAGEURL:="gerrit.oran-osc.org/r/ric-plt/appmgr"
Abukar Mohamed193caf92019-04-11 13:51:07 +000050
Abukar Mohamed97e8d9a2019-05-02 06:11:43 +000051DCKR_NAME:=appmgr-test_unit
52include build/make.docker.mk
Abukar Mohamed193caf92019-04-11 13:51:07 +000053
Abukar Mohamed97e8d9a2019-05-02 06:11:43 +000054DCKR_NAME:=appmgr-test_fmt
55include build/make.docker.mk
Abukar Mohamed193caf92019-04-11 13:51:07 +000056
Abukar Mohamed97e8d9a2019-05-02 06:11:43 +000057DCKR_NAME:=appmgr-test_sanity
58include build/make.docker.mk
Abukar Mohamed193caf92019-04-11 13:51:07 +000059
Abukar Mohamed97e8d9a2019-05-02 06:11:43 +000060DCKR_NAME:=appmgr
61include build/make.docker.mk
Abukar Mohamed193caf92019-04-11 13:51:07 +000062
63
Abukar Mohamed97e8d9a2019-05-02 06:11:43 +000064docker-test: docker-run_appmgr-test_fmt docker-run_appmgr-test_sanity docker-run-redished_appmgr-test_unit
Abukar Mohamed193caf92019-04-11 13:51:07 +000065