Skip to content

Commit

Permalink
fix(cicd): publish fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj Adhikari committed May 18, 2021
1 parent c4e2b1b commit ce137e4
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ commands:
steps:
- run:
name: Setup Environment Variables
command: echo "export PATH="$PATH":"$HOME/.pub-cache/bin"" >> $BASH_ENV
command: |
pub install
pub global activate junitreport
echo "export PATH="$PATH":"$HOME/.pub-cache/bin"" >> $BASH_ENV
- run:
name: command to run unit tests
command: flutter test --reporter json | tojunit --output test-results/dart-tests/device_widgets_unit_tests-report.xml
Expand Down Expand Up @@ -76,7 +79,7 @@ commands:
steps:
- run:
name: Publishing to pub.dev
command: dart pub publish
command: flutter pub publish

dependencies:
description: "Download dependencies and setup global packages"
Expand All @@ -86,15 +89,6 @@ commands:
default: "/bin/bash --login -eo pipefail"
steps:
- checkout
- run:
name: Download deps
shell: << parameters.shell >>
command: pub get
- run:
name: Get junitreporter
shell: << parameters.shell >>
command: pub global activate junitreport

##################
# Job Definitions
##################
Expand Down Expand Up @@ -122,6 +116,7 @@ jobs:
steps:
- dependencies:
shell: "bin/bash -eo pipefail"
- run-tests
- run-publish

######################
Expand All @@ -147,12 +142,8 @@ workflows:
and:
- equal: [ https://github.com/Yonomi/yonomi-device-widgets, << pipeline.project.git_url >> ]
jobs:
- test:
<<: *release-tag-filter
- hold:
type: approval
requires:
- test
<<: *release-tag-filter
- publish:
requires:
Expand Down

0 comments on commit ce137e4

Please sign in to comment.