diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000..aec70f3055 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,72 @@ +version: 2 +jobs: + test: + working_directory: /go/src/github.com/Azure/acs-engine + docker: + - image: microsoft/acs-engine:latest + steps: + - setup_remote_docker: + reusable: true + - checkout + - run: + name: Build current image + command: | + TAG="0.1.${CIRCLE_BUILD_NUM}" + docker build -t microsoft/acs-engine:$TAG . + - run: + name: Run style and unit tests + command: docker run --rm microsoft/acs-engine:$TAG make test-style build test + - run: + name: Generate test coverage results + command: make bootstrap build coverage + command: docker run --rm microsoft/acs-engine:$TAG make build coverage + e2e: + working_directory: /go/src/github.com/Azure/acs-engine + docker: + - image: microsoft/acs-engine:latest + steps: + - setup_remote_docker: + reusable: true + - checkout + - run: + name: Build current image + command: | + TAG="0.1.${CIRCLE_BUILD_NUM}" + docker build -t microsoft/acs-engine:$TAG . + - run: + name: e2e tests + command: | + TAG="0.1.${CIRCLE_BUILD_NUM}" + cat > ./env.list <