From afd68fe06894d0aa6bd502006d8534c0180443c9 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 3 Jan 2018 19:40:28 +0000 Subject: [PATCH] Add deploy job --- .circleci/config.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 203e29a4..d3b34762 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -27,11 +27,32 @@ jobs: - store_artifacts: path: ~/phpunit + deploy: + docker: + - image: ansible/ansible:ubuntu1604 + steps: + - run: + name: Install system packages. + command: pip install --upgrade pip && pip install ansible + + - checkout + + - restore_cache: + key: v1-{{ .Branch }}-{{ checksum 'requirements.yml' }} + + - run ansible-galaxy install -r ansible/requirements.yml + + - save_cache: + key: v1-{{ .Branch }}-{{ checksum 'requirements.yml' }} + paths: + - '/root/.ansible/roles' + workflows: version: 2 build_test_and_deploy: jobs: - build_and_test + - deploy nightly: jobs: - build_and_test