Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #158 from dmbarra/feature/rework_for_workflows
Browse files Browse the repository at this point in the history
Feature/rework for workflows
  • Loading branch information
dmbarra authored Jun 10, 2020
2 parents b2ba58b + 04d2c62 commit 5659624
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 21 deletions.
82 changes: 61 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ references:
filters: &FILTERS_DELIVERY
branches:
only:
- /^release-.*/
- qa
- nightly
- beta
Expand All @@ -34,20 +33,12 @@ references:
only:
- /^release-.*/

filters-checks: &FILTERS_CHECK
branches:
only:
- master
- /^release-.*/
- nightly
- beta

filters-checks-pr: &FILTERS_CHECK_CODE
branches:
only:
- qa
- /^pull\/.*$/
- /^feature.*/
- master

executors:
ritchie-tests-executor:
Expand Down Expand Up @@ -100,7 +91,6 @@ jobs:
command: |
go mod download
/go/bin/golangci-lint run
horus:
executor: horus-executor
environment:
Expand Down Expand Up @@ -149,7 +139,6 @@ jobs:
name: codecov upload
when: always
command: bash <(curl -s https://codecov.io/bash)

unix_functional_test_single:
executor: ritchie-executor
environment:
Expand Down Expand Up @@ -252,7 +241,6 @@ jobs:
path: *TEST_RESULTS_DIR
- store_artifacts:
path: *TEST_RESULTS_DIR

delivery:
executor: delivery-executor
environment:
Expand Down Expand Up @@ -293,6 +281,38 @@ jobs:
command: |
make rebase-nightly
unix_smoke_test:
executor: ritchie-tests-executor
environment:
<<: *ENVIRONMENT
steps:
- checkout
- run:
name: Load Versions
command: |
. ./.circleci/scripts/version.sh
echo $RELEASE_VERSION
- run:
name: install Rit Single
command: |
curl -fsSL https://commons-repo.ritchiecli.io/install_single.sh | bash
- run:
name: Verify Command
command: |
rit --version
rit --version | grep "$RELEASE_VERSION"
- run:
name: install Rit Team
command: |
curl -fsSL https://commons-repo.ritchiecli.io/install.sh | bash
- run:
name: Verify Command
command: |
rit --version
rit --version | grep "$RELEASE_VERSION"
workflows:
nightly:
triggers:
Expand All @@ -304,8 +324,7 @@ workflows:
- master
jobs:
- rebase_nightly

build-for-branch:
build-for-requests:
jobs:
- lint:
filters:
Expand Down Expand Up @@ -352,18 +371,39 @@ workflows:
<<: *FILTERS_CHECK_CODE
requires:
- build-code
release:
jobs:
- build:
name: build-code
filters:
<<: *FILTERS_RELEASE
- delivery:
name: delivery
filters:
<<: *FILTERS_DELIVERY
<<: *FILTERS_RELEASE
requires:
- unix-functional-test-single-code
- unix-functional-test-team-code
- windows-functional-test-single-code
- windows-functional-test-team-code
- build-code
- release:
name: release
type: approval
filters:
<<: *FILTERS_RELEASE
requires:
- delivery
- unix_smoke_test:
name: unix-smoke-test
filters:
<<: *FILTERS_RELEASE
delivery:
jobs:
- build:
name: build-code
filters:
<<: *FILTERS_DELIVERY
- delivery:
name: delivery
filters:
<<: *FILTERS_DELIVERY
requires:
- delivery
- build-code

1 change: 1 addition & 0 deletions .circleci/scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ elif expr "$CIRCLE_BRANCH" : '^nightly' >/dev/null; then
elif expr "$CIRCLE_BRANCH" : '^beta' >/dev/null; then
export RELEASE_VERSION="beta"
else
export RELEASE_VERSION=$(curl https://commons-repo.ritchiecli.io/stable.txt)
echo ""
fi

0 comments on commit 5659624

Please sign in to comment.