Browse Source

:wrench: Moved all elements related to docker build in contrib

As requested by maintainer
Guillaume Jacquenot 5 years ago
parent
commit
823de00fba
4 changed files with 7 additions and 4 deletions
  1. 1 1
      .travis.yml
  2. 0 3
      Makefile
  3. 0 0
      contrib/Dockerfile
  4. 6 0
      contrib/Makefile

+ 1 - 1
.travis.yml

@@ -3,4 +3,4 @@ dist: trusty
 services:
   - docker
 script:
-  - make docker_build
+  - make -C contrib docker_build

+ 0 - 3
Makefile

@@ -36,6 +36,3 @@ $(EXAMPLE_TARGETS): examples/build/%: examples/%.cpp matplotlibcpp.h
 
 clean:
 	rm -f ${EXAMPLE_TARGETS}
-
-docker_build:
-	docker build . -t matplotlibcpp

+ 0 - 0
Dockerfile → contrib/Dockerfile


+ 6 - 0
contrib/Makefile

@@ -0,0 +1,6 @@
+all: docker_build
+
+docker_build:
+	cd .. && \
+	docker build . -f contrib/Dockerfile -t matplotlibcpp && \
+	cd contrib