From b498dc47e3856aa79649cef7be20475b67839671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateu=20Aguil=C3=B3=20Bosch?= Date: Mon, 21 Aug 2017 02:06:12 +0200 Subject: [PATCH] feat(Travis): Remove Circle CI dependency (#173) --- .circleci/config.yml | 47 -------------------------------------------- .travis.yml | 11 +++++++++++ 2 files changed, 11 insertions(+), 47 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index c33fdf0d..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,47 +0,0 @@ -version: 2 -jobs: - build: - working_directory: ~/contentacms - docker: - - image: notnoopci/php:7.1.5-browsers - steps: - - checkout - trigger_build: - working_directory: ~/contentacms - docker: - - image: notnoopci/php:7.1.5-browsers - steps: - - run: | - mkdir ~/.ssh - echo -e "Host *\n StrictHostKeyChecking no\n HashKnownHosts no\n SendEnv LANG LC_*\n" >> ~/.ssh/config - - run: - name: Clone demo site repo - command: git clone git@github.com:contentacms/contenta_jsonapi_demo.git contenta_jsonapi_demo - - run: - name: Add and commit trigger - command: | - cd contenta_jsonapi_demo - pwd - echo -e " * Profile update -> buildNum=[$CIRCLE_BUILD_NUM]($CIRCLE_BUILD_URL) on [$CIRCLE_PR_REPONAME]($CIRCLE_REPOSITORY_URL)@CIRCLE_SHA1\n" >> DEPLOYS.md - cat DEPLOYS.md - git config --global user.email "bot@contentacms.org" - git config --global user.name "Contenta CMS CI Bot" - git status - git add DEPLOYS.md - git commit -m 'ci(Deploy): Trigger a deploy to the demo site' - git push origin master - - run: - name: Cleanup - command: | - rm -fr contenta_jsonapi_demo -workflows: - version: 2 - deploy_demo_site: - jobs: - - build - - trigger_build: - requires: - - build - filters: - branches: - only: 8.x-1.x diff --git a/.travis.yml b/.travis.yml index 8636fcca..204a501b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -84,3 +84,14 @@ jobs: # Only release if it $PROJECT_RELEASE_BRANCH gets updated branch: $PROJECT_RELEASE_BRANCH repo: "contentacms/contenta_jsonapi" + after_deploy: + # Clone the demo site repo to trigger an automated. + - git clone git@github.com:contentacms/contenta_jsonapi_demo.git contenta_jsonapi_demo + # Navigate inside the cloned project. + - cd contenta_jsonapi_demo + - echo -e " * Profile update -> buildNum=[$CIRCLE_BUILD_NUM]($CIRCLE_BUILD_URL) on [$CIRCLE_PR_REPONAME]($CIRCLE_REPOSITORY_URL)@CIRCLE_SHA1\n" >> DEPLOYS.md + - git config --global user.email "bot@contentacms.org" + - git config --global user.name "Contenta CMS CI Bot" + - git add DEPLOYS.md + - 'git commit -m "ci(Deploy): Trigger a deploy to the demo site"' + - git push origin master