Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello committed Dec 10, 2020
1 parent d017782 commit 5824bc3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ commands:
echo -e "android.enableJetifier=true" >> ./gradle.properties
echo -e "FLIPPER_VERSION=0.51.0" >> ./gradle.properties
if [[ $CIRCLE_JOB == "android-build-official-play" ]]; then
if [[ $CIRCLE_JOB == "android-build-official" ]]; then
echo -e "APPLICATION_ID=chat.rocket.android" >> ./gradle.properties
echo -e "BugsnagAPIKey=$BUGSNAG_KEY_OFFICIAL" >> ./gradle.properties
else
Expand Down Expand Up @@ -135,7 +135,7 @@ commands:
- run:
name: Config variables
command: |
if [[ $CIRCLE_JOB == "android-build-official-play" ]]; then
if [[ $CIRCLE_JOB == "android-build-official" ]]; then
echo -e "export default { BUGSNAG_API_KEY: '$BUGSNAG_KEY_OFFICIAL' };" > ./config.js
else
echo -e "export default { BUGSNAG_API_KEY: '$BUGSNAG_KEY' };" > ./config.js
Expand All @@ -144,10 +144,10 @@ commands:
- run:
name: Build App
command: |
if [[ $CIRCLE_JOB == "android-build-official-play" ]]; then
if [[ $CIRCLE_JOB == "android-build-official" ]]; then
./gradlew bundleOfficialPlayRelease
fi
if [[ $CIRCLE_JOB == "android-build-experimental-play" ]]; then
if [[ $CIRCLE_JOB == "android-build-experimental" ]]; then
./gradlew bundleExperimentalPlayRelease
fi
if [[ ! $KEYSTORE ]]; then
Expand All @@ -158,7 +158,7 @@ commands:
- run:
name: Upload sourcemaps to Bugsnag
command: |
if [[ $CIRCLE_JOB == "android-build-official-play" ]]; then
if [[ $CIRCLE_JOB == "android-build-official" ]]; then
yarn generate-source-maps-android upload \
--api-key=$BUGSNAG_KEY_OFFICIAL \
--app-version=$CIRCLE_BUILD_NUM \
Expand All @@ -167,7 +167,7 @@ commands:
--minified-url=app.bundle \
--upload-sources
fi
if [[ $CIRCLE_JOB == "android-build-experimental-play" ]]; then
if [[ $CIRCLE_JOB == "android-build-experimental" ]]; then
yarn generate-source-maps-android upload \
--api-key=$BUGSNAG_KEY \
--app-version=$CIRCLE_BUILD_NUM \
Expand Down Expand Up @@ -385,7 +385,7 @@ jobs:
official: true

# iOS builds
ios-build:
ios-build-experimental:
executor: mac-env
steps:
- ios-build
Expand All @@ -395,7 +395,7 @@ jobs:
steps:
- ios-build

ios-testflight:
ios-testflight-experimental:
executor: mac-env
steps:
- upload-to-testflight:
Expand Down Expand Up @@ -425,13 +425,13 @@ workflows:
- ios-hold-testflight-experimental

# iOS Official
- ios-hold-testflight-official:
- ios-hold-build-official:
type: approval
requires:
- lint-testunit
- ios-build-official:
requires:
- ios-hold-testflight-official
- ios-hold-build-official
- ios-hold-testflight-official:
type: approval
requires:
Expand All @@ -456,7 +456,7 @@ workflows:
- android-hold-build-official:
type: approval
requires:
- android-play-build
- lint-testunit
- android-build-official:
requires:
- android-hold-build-official
Expand Down

0 comments on commit 5824bc3

Please sign in to comment.