You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,8 @@ help:
49
49
@echo "Remote:"
50
50
@echo " publish to publish the package to PyPI"
51
51
@echo " push_img to push image to docker hub"
52
-
@echo " test_ci Used by Travis CI to run tests on django applications"
52
+
@echo " test_ci Used by Travis CI to run tests on django applications. The app name must be provided. Ex. ''make test_ci app=networkapi/api_environment'"
53
+
@echo " test_ci_travis to localy run the same Travis CI tests"
53
54
@echo
54
55
55
56
@@ -119,11 +120,12 @@ publish: clean
119
120
# Containers based target rules
120
121
#
121
122
122
-
start: docker-compose.yml
123
-
@docker-compose up -d
123
+
start: docker-compose-sdn.yml docker-compose.yml
124
+
docker-compose up --force-recreate --remove-orphans -d
125
+
docker-compose --file $< up --force-recreate -d
124
126
125
127
126
-
stop: docker-compose.yml
128
+
stop: docker-compose-sdn.yml docker-compose.yml
127
129
@docker-compose down --remove-orphans
128
130
129
131
@@ -146,6 +148,10 @@ test_ci:
146
148
time docker exec -it netapi_app ./fast_start_test.sh ${app}
147
149
148
150
151
+
test_ci_travis:
152
+
@echo "Running the same NetAPI tests enabled on travis"
153
+
time docker exec -it netapi_app ./thesame_tests_travis_do.sh
154
+
149
155
fixture:
150
156
ifeq (${model},)
151
157
$(error Missing model. Usage: make fixture model=interface.PortChannel)
0 commit comments