diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..d6175a21 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: minimal +dist: trusty +services: + - docker +script: + - make -C contrib docker_build diff --git a/Makefile b/Makefile index a4a8a28a..bcd0d8f9 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,20 @@ WITHOUT_NUMPY := $(findstring $(CXXFLAGS), WITHOUT_NUMPY) # Examples requiring numpy support to compile EXAMPLES_NUMPY := surface -EXAMPLES := minimal basic modern animation nonblock xkcd quiver bar \ - fill_inbetween fill update subplot2grid colorbar lines3d \ +EXAMPLES := minimal \ + basic \ + modern \ + animation \ + nonblock \ + xkcd \ + quiver \ + bar \ + fill_inbetween \ + fill \ + update \ + subplot2grid \ + colorbar \ + lines3d \ $(if WITHOUT_NUMPY,,$(EXAMPLES_NUMPY)) # Prefix every example with 'examples/build/' diff --git a/README.md b/README.md index 72bab39f..a1ad7bdf 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ A more comprehensive example: namespace plt = matplotlibcpp; -int main() +int main() { // Prepare data. int n = 5000; @@ -73,26 +73,26 @@ Alternatively, matplotlib-cpp also supports some C++11-powered syntactic sugar: using namespace std; namespace plt = matplotlibcpp; -int main() -{ +int main() +{ // Prepare data. int n = 5000; // number of data points - vector x(n),y(n); + vector x(n),y(n); for(int i=0; i