diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000..60c32f6c72 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,67 @@ +version: 2 +jobs: + build-api-frontend: + docker: + - image: seldonio/core-builder:0.1 + + working_directory: /work + + steps: + - checkout + + - setup_remote_docker: + docker_layer_caching: true + + - run: + shell: /bin/sh + command: | + echo Building api-frontend + cd api-frontend + make -f Makefile.ci build + + build-engine: + docker: + - image: seldonio/core-builder:0.1 + + working_directory: /work + + steps: + - checkout + + - setup_remote_docker: + docker_layer_caching: true + + - run: + shell: /bin/sh + command: | + echo Building engine + cd engine + make -f Makefile.ci build + + cluster-manager: + docker: + - image: seldonio/core-builder:0.1 + + working_directory: /work + + steps: + - checkout + + - setup_remote_docker: + docker_layer_caching: true + + - run: + shell: /bin/sh + command: | + echo Building cluster-manager + cd cluster-manager + make -f Makefile.ci build + +workflows: + version: 2 + build: + jobs: + - build-api-frontend + - build-engine + - cluster-manager + diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..ebc5d3def4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +sudo: required + +services: + - docker + +branches: + only: + - master + +script: + - echo Building api-frontend + - | + docker run --rm -it \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v ${HOME}/.m2:/root/.m2 \ + -v $(pwd):/work \ + seldonio/core-builder:0.1 bash -c 'cd api-frontend && make -f Makefile.ci build' +