From 119eddaea162083480ee9486ebd3373d2aea8de7 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 4 Apr 2020 21:27:54 -0400 Subject: [PATCH] feat: enable circleci --- .circleci/config.yml | 64 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..e31ae1e --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,64 @@ +version: 2 +jobs: + build-master: + environment: + DOKKU_VERSION: master + machine: + docker_layer_caching: false + image: ubuntu-1604:201903-01 + steps: + - checkout + - run: pyenv global 3.7.0 + - run: make setup + - run: sudo sysctl -w vm.max_map_count=262144 + - run: + command: | + make generate; + if [[ $(git diff) ]]; then + echo "Please run `make generate`"; + git status --short; + git diff; + exit 1; + fi + - run: make test + - store_artifacts: + path: build + destination: build + - store_artifacts: + path: tmp/test-results + destination: test-results + + build-version: + environment: + DOKKU_VERSION: v0.19.0 + machine: + docker_layer_caching: false + image: ubuntu-1604:201903-01 + steps: + - checkout + - run: pyenv global 3.7.0 + - run: make setup + - run: sudo sysctl -w vm.max_map_count=262144 + - run: + command: | + make generate; + if [[ $(git diff) ]]; then + echo "Please run `make generate`"; + git status --short; + git diff; + exit 1; + fi + - run: make test + - store_artifacts: + path: build + destination: build + - store_artifacts: + path: tmp/test-results + destination: test-results + +workflows: + version: 2 + build: + jobs: + - "build-master" + - "build-version"