@@ -39,8 +39,8 @@ commands:
39
39
- run :
40
40
name : Turn on RUST_BACKTRACE and RUST_LOG for any job that installs rustc
41
41
command : |
42
- echo "export RUST_BACKTRACE=1" >> $BASH_ENV
43
- echo "export RUST_LOG=glean_core=debug" >> $BASH_ENV
42
+ echo "export RUST_BACKTRACE=1" >> $BASH_ENV
43
+ echo "export RUST_LOG=glean_core=debug" >> $BASH_ENV
44
44
- run :
45
45
name : Setup Rust toolchain
46
46
command : |
@@ -91,16 +91,16 @@ commands:
91
91
- run :
92
92
name : Setup custom environment variables
93
93
command : |
94
- echo 'export PATH=$HOME/.cargo/bin:$PATH' >> $BASH_ENV
94
+ echo 'export PATH=$HOME/.cargo/bin:$PATH' >> $BASH_ENV
95
95
96
96
install-android-ndk :
97
97
steps :
98
98
- run :
99
99
name : Install missing Android SDK & NDK
100
100
command : |
101
- sdkmanager \
102
- "build-tools;33.0.0" \
103
- "ndk;25.1.8937393"
101
+ sdkmanager \
102
+ "build-tools;33.0.0" \
103
+ "ndk;25.1.8937393"
104
104
105
105
android-setup :
106
106
steps :
@@ -111,7 +111,7 @@ commands:
111
111
- run :
112
112
name : Restrict to Linux builds only
113
113
command : |
114
- echo "rust.targets=linux-x86-64" > local.properties
114
+ echo "rust.targets=linux-x86-64" > local.properties
115
115
116
116
test-python :
117
117
steps :
@@ -120,8 +120,8 @@ commands:
120
120
- run :
121
121
name : Remove coredump file restriction
122
122
command : |
123
- # tell the operating system to remove the file size limit on core dump files
124
- ulimit -c unlimited
123
+ # tell the operating system to remove the file size limit on core dump files
124
+ ulimit -c unlimited
125
125
- run :
126
126
name : Python tests
127
127
command : |
@@ -131,9 +131,9 @@ commands:
131
131
name : Detect and gather coredump files
132
132
when : always
133
133
command : |
134
- mkdir -p ~/coredumps
135
- # Try to copy the core file(s). Don't fail if they don't exist.
136
- cp core.* ~/coredumps || true
134
+ mkdir -p ~/coredumps
135
+ # Try to copy the core file(s). Don't fail if they don't exist.
136
+ cp core.* ~/coredumps || true
137
137
- store_artifacts :
138
138
path : ~/coredumps
139
139
destination : coredumps
@@ -417,8 +417,8 @@ jobs:
417
417
- run :
418
418
name : Remove coredump file restriction
419
419
command : |
420
- # tell the operating system to remove the file size limit on core dump files
421
- ulimit -c unlimited
420
+ # tell the operating system to remove the file size limit on core dump files
421
+ ulimit -c unlimited
422
422
- run :
423
423
name : Android tests
424
424
command : ./gradlew --no-daemon :glean:testDebugUnitTest
@@ -428,22 +428,22 @@ jobs:
428
428
- run :
429
429
name : Save test results
430
430
command : |
431
- mkdir -p ~/test-results/junit/
432
- mkdir -p ~/test-results/tests/
433
- cp -a glean-core/android/build/reports/tests ~/test-results/
434
- find glean-core/android/build -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/test-results/junit/ \;
431
+ mkdir -p ~/test-results/junit/
432
+ mkdir -p ~/test-results/tests/
433
+ cp -a glean-core/android/build/reports/tests ~/test-results/
434
+ find glean-core/android/build -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/test-results/junit/ \;
435
435
when : always
436
436
- store_artifacts :
437
437
path : ~/test-results/tests
438
438
destination : test-results
439
439
- run :
440
440
name : Detect and gather coredump files
441
441
command : |
442
- mkdir -p ~/coredumps
443
- # Try to copy the core file from a default location. Don't fail if it doesn't exist.
444
- cp -a glean-core/android/core ~/coredumps || true
445
- # The JVM/Gradle might also produce a log file named like "hs_err_pid3247.log", let's copy that as well
446
- find . -type f -name "hs_*.log" | xargs -I% cp -a % ~/coredumps/%
442
+ mkdir -p ~/coredumps
443
+ # Try to copy the core file from a default location. Don't fail if it doesn't exist.
444
+ cp -a glean-core/android/core ~/coredumps || true
445
+ # The JVM/Gradle might also produce a log file named like "hs_err_pid3247.log", let's copy that as well
446
+ find . -type f -name "hs_*.log" | xargs -I% cp -a % ~/coredumps/%
447
447
- store_artifacts :
448
448
path : ~/coredumps
449
449
destination : coredumps
@@ -452,7 +452,7 @@ jobs:
452
452
- run :
453
453
name : Build Android Sample App
454
454
command : |
455
- ./gradlew :glean-sample-app:assembleAndroidTest
455
+ ./gradlew :glean-sample-app:assembleAndroidTest
456
456
environment :
457
457
GRADLE_OPTS : -Xmx2048m
458
458
TARGET_CFLAGS : -DNDEBUG
@@ -612,7 +612,7 @@ jobs:
612
612
- run :
613
613
name : Build XCFramework archive
614
614
command : |
615
- bash bin/build-xcframework.sh
615
+ bash bin/build-xcframework.sh
616
616
- run :
617
617
name : Build sample app
618
618
command : |
@@ -664,9 +664,9 @@ jobs:
664
664
- run :
665
665
name : Release glean-swift
666
666
command : |
667
- git config --global user.email "[email protected] "
668
- git config --global user.name "Glean automated release"
669
- ./bin/publish-glean-swift.sh "${CIRCLE_TAG}"
667
+ git config --global user.email "[email protected] "
668
+ git config --global user.name "Glean automated release"
669
+ ./bin/publish-glean-swift.sh "${CIRCLE_TAG}"
670
670
671
671
# ##########################################################################
672
672
# Python
@@ -700,7 +700,7 @@ jobs:
700
700
- skip-if-doc-only
701
701
- run :
702
702
command : |
703
- echo "export GLEAN_PYDEPS=min" >> $BASH_ENV
703
+ echo "export GLEAN_PYDEPS=min" >> $BASH_ENV
704
704
- test-python
705
705
706
706
Python 3_7 tests :
@@ -736,7 +736,7 @@ jobs:
736
736
- skip-if-doc-only
737
737
- run :
738
738
command : |
739
- echo "export GLEAN_PYDEPS=min" >> $BASH_ENV
739
+ echo "export GLEAN_PYDEPS=min" >> $BASH_ENV
740
740
- test-python
741
741
742
742
Python 3_9 on Alpine tests :
@@ -921,10 +921,11 @@ jobs:
921
921
GLEAN_BUILD_VARIANT : release
922
922
- run :
923
923
name : Upload wheels to PyPI
924
- command :
924
+ command : |
925
+ cd glean-core/python
925
926
# Requires that the TWINE_USERNAME and TWINE_PASSWORD environment
926
927
# variables are configured in CircleCI's environment variables.
927
- .venv3.9/bin/python3 -m twine upload glean-core/python/ dist/*
928
+ .venv3.9/bin/python3 -m twine upload dist/*
928
929
- install-ghr-darwin
929
930
- run :
930
931
name : Publish to Github
0 commit comments