Skip to content

Commit

Permalink
feat(flutter): add CI env var (#349)
Browse files Browse the repository at this point in the history
* feat: add CI env var

* docs: add reason for adding CI env

---------

Co-authored-by: Steven Johnson <[email protected]>
  • Loading branch information
damian-molinski and stevenj authored Nov 5, 2024
1 parent 50a5b9b commit 30a8116
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions earthly/flutter/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ flutter-base:

COPY +flutter-src/flutter /usr/local
ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:$HOME/.pub-cache/bin:${PATH}"
# Flutter prints warnings when used by root user but omits them if has CI env flag found.
# script: https://github.com/flutter/flutter/blob/master/bin/internal/shared.sh#L214
ENV CI="true"
RUN flutter config --no-analytics
RUN flutter --version
RUN flutter doctor -v
Expand Down

0 comments on commit 30a8116

Please sign in to comment.