@@ -51,7 +51,8 @@ install_openjdk8: &install_openjdk8
51
51
sudo apt-get update && sudo apt-get install openjdk-8-jdk
52
52
sudo update-java-alternatives -s java-1.8.0-openjdk-amd64
53
53
elif [ "${PLATFORM}" == "macos" ]; then
54
- brew install --cask adoptopenjdk8
54
+ brew install openjdk@8
55
+ export PATH="/usr/local/opt/openjdk@8/bin:$PATH"
55
56
fi
56
57
java -version
57
58
@@ -107,6 +108,11 @@ install_python: &install_python
107
108
if [ "${PLATFORM}" == "macos" ]; then
108
109
brew install pyenv
109
110
fi
111
+ if [ "${PLATFORM}" == "linux" ]; then
112
+ # Reinstall libffi6 as Ubuntu 20.04 contains only libffi7
113
+ wget http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb
114
+ sudo apt install ./libffi6_3.2.1-8_amd64.deb
115
+ fi
110
116
pyenv versions
111
117
export PATH="$(pyenv root)/shims:${PATH}"
112
118
python_version=`python --version` || python_version="Python Not Found"
@@ -176,8 +182,7 @@ run_buck_build: &run_buck_build
176
182
set -ex
177
183
./bin/buck build buck --out "${BUCK_PEX_LOCATION}" || { cat "buck-out/log/buck-0.log"; exit 1; }
178
184
179
- linux_environment : &linux_environment
180
- # Use string constant for values, no environment variables
185
+ linux_environment : &linux_environment # Use string constant for values, no environment variables
181
186
PLATFORM : " linux"
182
187
BUCKROOT : " /home/circleci/buck"
183
188
ANDROID_SDK : " /home/circleci/android-sdk"
@@ -192,6 +197,7 @@ macos_environment: &macos_environment
192
197
TERM : " dumb"
193
198
BUCK_NUM_THREADS : 3
194
199
BUCK_PEX_LOCATION : " ./new_buck.pex"
200
+ JAVA_HOME : " /usr/local/Cellar/openjdk@8/1.8.0+312"
195
201
196
202
windows_environment : &windows_environment
197
203
PLATFORM : " windows"
@@ -219,7 +225,7 @@ jobs:
219
225
working_directory : " /home/circleci/buck"
220
226
machine :
221
227
# linux VM
222
- image : ubuntu-1604:201903-01
228
+ image : ubuntu-2004:202107-02
223
229
steps :
224
230
# Steps run sequentially in separate shells
225
231
- checkout
@@ -269,7 +275,7 @@ jobs:
269
275
<< : *linux_environment
270
276
working_directory : " /home/circleci/buck"
271
277
machine :
272
- image : ubuntu-1604:201903-01
278
+ image : ubuntu-2004:202107-02
273
279
steps :
274
280
- checkout
275
281
- run :
@@ -314,7 +320,7 @@ jobs:
314
320
<< : *linux_environment
315
321
working_directory : " /home/circleci/buck"
316
322
machine :
317
- image : ubuntu-1604:201903-01
323
+ image : ubuntu-2004:202107-02
318
324
steps :
319
325
- checkout
320
326
- run :
@@ -352,7 +358,7 @@ jobs:
352
358
<< : *linux_environment
353
359
working_directory : " /home/circleci/buck"
354
360
machine :
355
- image : ubuntu-1604:201903-01
361
+ image : ubuntu-2004:202107-02
356
362
steps :
357
363
- checkout
358
364
- run :
@@ -398,7 +404,7 @@ jobs:
398
404
export GROOVY_HOME="$HOME/.sdkman/candidates/groovy/current"
399
405
set -eux
400
406
# There is a bug in buck, see issue #2435 for details. skip the tests for now.
401
- ${BUCK_PEX_LOCATION} test --num-threads=$BUCK_NUM_THREADS --all --filter '^(?!(com.facebook.buck.android|com.facebook.buck.jvm.java|com.facebook.buck.features.rust.RustBinaryIntegrationTest|com.facebook.buck.features.rust.RustLinkerIntegrationTest|com.facebook.buck.features.lua.LuaBinaryIntegrationTest)).*[Ii]ntegration.*'
407
+ ${BUCK_PEX_LOCATION} test --num-threads=$BUCK_NUM_THREADS --all --filter '^(?!(com.facebook.buck.android|com.facebook.buck.jvm.java|com.facebook.buck.features.rust.RustBinaryIntegrationTest|com.facebook.buck.features.rust.RustLinkerIntegrationTest|com.facebook.buck.features.lua.LuaBinaryIntegrationTest|com.facebook.buck.apple.AppleBinaryIntegrationTest|com.facebook.buck.features.haskell.HaskellBinaryIntegrationTest|com.facebook.buck.features.go.GoBinaryIntegrationTest )).*[Ii]ntegration.*'
402
408
# Run this after the bug has been fixed:
403
409
#${BUCK_PEX_LOCATION} test --num-threads=$BUCK_NUM_THREADS --all --filter '^(?!(com.facebook.buck.android|com.facebook.buck.jvm.java)).*[Ii]ntegration.*'
404
410
@@ -407,7 +413,7 @@ jobs:
407
413
<< : *linux_environment
408
414
working_directory : " /home/circleci/buck"
409
415
machine :
410
- image : ubuntu-1604:201903-01
416
+ image : ubuntu-2004:202107-02
411
417
steps :
412
418
- checkout
413
419
- run :
@@ -460,7 +466,7 @@ jobs:
460
466
<< : *linux_environment
461
467
working_directory : " /home/circleci/buck"
462
468
machine :
463
- image : ubuntu-1604:201903-01
469
+ image : ubuntu-2004:202107-02
464
470
steps :
465
471
- checkout
466
472
- run :
@@ -509,7 +515,7 @@ jobs:
509
515
<< : *linux_environment
510
516
working_directory : " /home/circleci/buck"
511
517
machine :
512
- image : ubuntu-1604:201903-01
518
+ image : ubuntu-2004:202107-02
513
519
steps :
514
520
- checkout
515
521
- run :
@@ -558,7 +564,7 @@ jobs:
558
564
<< : *linux_environment
559
565
working_directory : " /home/circleci/buck"
560
566
machine :
561
- image : ubuntu-1604:201903-01
567
+ image : ubuntu-2004:202107-02
562
568
steps :
563
569
- checkout
564
570
- run :
@@ -600,6 +606,8 @@ jobs:
600
606
- run :
601
607
name : Run Android NDK 17 Tests
602
608
command : |
609
+ # libcurses5 is needed for providing libtinfo.so.5
610
+ sudo apt install libncurses5
603
611
export NDK_HOME="${HOME}/android-ndk-linux"
604
612
export ANDROID_HOME="${ANDROID_SDK}"
605
613
source ~/dlang/dmd-2.091.0/activate
@@ -614,7 +622,7 @@ jobs:
614
622
<< : *linux_environment
615
623
working_directory : " /home/circleci/buck"
616
624
machine :
617
- image : ubuntu-1604:201903-01
625
+ image : ubuntu-2004:202107-02
618
626
steps :
619
627
- checkout
620
628
- run :
@@ -663,7 +671,7 @@ jobs:
663
671
<< : *linux_environment
664
672
working_directory : " /home/circleci/buck"
665
673
machine :
666
- image : ubuntu-1604:201903-01
674
+ image : ubuntu-2004:202107-02
667
675
steps :
668
676
- checkout
669
677
- run :
@@ -712,7 +720,7 @@ jobs:
712
720
<< : *linux_environment
713
721
working_directory : " /home/circleci/buck"
714
722
machine :
715
- image : ubuntu-1604:201903-01
723
+ image : ubuntu-2004:202107-02
716
724
steps :
717
725
- checkout
718
726
- run :
@@ -761,7 +769,7 @@ jobs:
761
769
<< : *linux_environment
762
770
working_directory : " /home/circleci/buck"
763
771
machine :
764
- image : ubuntu-1604:201903-01
772
+ image : ubuntu-2004:202107-02
765
773
steps :
766
774
- checkout
767
775
- run :
@@ -810,7 +818,7 @@ jobs:
810
818
<< : *macos_environment
811
819
working_directory : " /Users/distiller/buck"
812
820
macos :
813
- xcode : " 11.3 .1"
821
+ xcode : " 12.5 .1"
814
822
steps :
815
823
# Steps run sequentially in separate shells
816
824
- checkout
@@ -860,7 +868,7 @@ jobs:
860
868
<< : *macos_environment
861
869
working_directory : " /Users/distiller/buck"
862
870
macos :
863
- xcode : " 11.3 .1"
871
+ xcode : " 12.5 .1"
864
872
steps :
865
873
- checkout
866
874
- run :
@@ -904,7 +912,7 @@ jobs:
904
912
<< : *macos_environment
905
913
working_directory : " /Users/distiller/buck"
906
914
macos :
907
- xcode : " 11.3 .1"
915
+ xcode : " 12.5 .1"
908
916
steps :
909
917
- checkout
910
918
- run :
@@ -943,8 +951,7 @@ jobs:
943
951
<< : *macos_environment
944
952
working_directory : " /Users/distiller/buck"
945
953
macos :
946
- # The tests do not support xcode 11.x.x yet.
947
- xcode : " 10.3.0"
954
+ xcode : " 12.5.1"
948
955
steps :
949
956
- checkout
950
957
- run :
@@ -997,23 +1004,23 @@ jobs:
997
1004
export PATH="${ANDROID_SDK}/tools/bin:${PATH}"
998
1005
export PATH="$(pyenv root)/shims:${PATH}"
999
1006
export GROOVY_HOME="$HOME/.sdkman/candidates/groovy/current"
1000
- export JAVA_HOME=` /usr/libexec/java_home`
1007
+ export JAVA_HOME=" /usr/local/Cellar/openjdk@8/1.8.0+312"
1001
1008
export PATH="${JAVA_HOME}/bin:${PATH}"
1002
1009
source ~/dlang/dmd-2.091.0/activate
1003
1010
export PATH="${HOME}/.cargo/bin:${PATH}"
1004
1011
set -ex
1005
1012
# Should run this:
1006
1013
#${BUCK_PEX_LOCATION} test --num-threads=$BUCK_NUM_THREADS --all --filter '^(?!(com.facebook.buck.android|com.facebook.buck.jvm.java)).*[Ii]ntegration.*'
1007
1014
# But there are some test failures, exclude them for now and fix them later.
1008
- ${BUCK_PEX_LOCATION} test --num-threads=$BUCK_NUM_THREADS --all --filter '^(?!(com.facebook.buck.android|com.facebook.buck.jvm.java|com.facebook.buck.features.haskell.HaskellBinary|com.facebook.buck.swift.SwiftTestIO|com.facebook.buck.apple.AppleTest |com.facebook.buck.features.lua.LuaBinaryIntegrationTest)).*[Ii]ntegration.*'
1015
+ ${BUCK_PEX_LOCATION} test --num-threads=$BUCK_NUM_THREADS --all --filter '^(?!(com.facebook.buck.android|com.facebook.buck.jvm.java|com.facebook.buck.features.haskell.HaskellBinary|com.facebook.buck.swift.SwiftTestIO|com.facebook.buck.apple|com.facebook.buck.features.lua.LuaBinaryIntegrationTest|com.facebook.buck.testrunner.RunWithDefaultTimeoutIntegrationTest|com.facebook.buck.features.apple.project.ProjectIntegrationTest|com.facebook.buck.swift.SwiftIOSBundleIntegrationTest )).*[Ii]ntegration.*'
1009
1016
no_output_timeout : 1h
1010
1017
1011
1018
macos_test_heavy_integration :
1012
1019
environment :
1013
1020
<< : *macos_environment
1014
1021
working_directory : " /Users/distiller/buck"
1015
1022
macos :
1016
- xcode : " 11.3 .1"
1023
+ xcode : " 12.5 .1"
1017
1024
steps :
1018
1025
- checkout
1019
1026
- run :
@@ -1055,7 +1062,7 @@ jobs:
1055
1062
command : |
1056
1063
export NDK_HOME="${HOME}/android-ndk-${PLATFORM}"
1057
1064
export ANDROID_HOME="${ANDROID_SDK}"
1058
- export JAVA_HOME=` /usr/libexec/java_home`
1065
+ export JAVA_HOME=" /usr/local/Cellar/openjdk@8/1.8.0+312"
1059
1066
export PATH="${JAVA_HOME}/bin:${PATH}"
1060
1067
source ~/dlang/dmd-2.091.0/activate
1061
1068
export PATH="${HOME}/.cargo/bin:${PATH}"
@@ -1068,7 +1075,7 @@ jobs:
1068
1075
<< : *macos_environment
1069
1076
working_directory : " /Users/distiller/buck"
1070
1077
macos :
1071
- xcode : " 11.3 .1"
1078
+ xcode : " 12.5 .1"
1072
1079
steps :
1073
1080
- checkout
1074
1081
- run :
@@ -1117,7 +1124,7 @@ jobs:
1117
1124
<< : *macos_environment
1118
1125
working_directory : " /Users/distiller/buck"
1119
1126
macos :
1120
- xcode : " 11.3 .1"
1127
+ xcode : " 12.5 .1"
1121
1128
steps :
1122
1129
- checkout
1123
1130
- run :
@@ -1166,7 +1173,7 @@ jobs:
1166
1173
<< : *macos_environment
1167
1174
working_directory : " /Users/distiller/buck"
1168
1175
macos :
1169
- xcode : " 11.3 .1"
1176
+ xcode : " 12.5 .1"
1170
1177
steps :
1171
1178
- checkout
1172
1179
- run :
@@ -1226,7 +1233,7 @@ jobs:
1226
1233
<< : *macos_environment
1227
1234
working_directory : " /Users/distiller/buck"
1228
1235
macos :
1229
- xcode : " 11.3 .1"
1236
+ xcode : " 12.5 .1"
1230
1237
steps :
1231
1238
- checkout
1232
1239
- run :
@@ -1275,7 +1282,7 @@ jobs:
1275
1282
<< : *macos_environment
1276
1283
working_directory : " /Users/distiller/buck"
1277
1284
macos :
1278
- xcode : " 11.3 .1"
1285
+ xcode : " 12.5 .1"
1279
1286
steps :
1280
1287
- checkout
1281
1288
- run :
@@ -1324,7 +1331,7 @@ jobs:
1324
1331
<< : *macos_environment
1325
1332
working_directory : " /Users/distiller/buck"
1326
1333
macos :
1327
- xcode : " 11.3 .1"
1334
+ xcode : " 12.5 .1"
1328
1335
steps :
1329
1336
- checkout
1330
1337
- run :
@@ -1373,7 +1380,7 @@ jobs:
1373
1380
<< : *macos_environment
1374
1381
working_directory : " /Users/distiller/buck"
1375
1382
macos :
1376
- xcode : " 11.3 .1"
1383
+ xcode : " 12.5 .1"
1377
1384
steps :
1378
1385
- checkout
1379
1386
- run :
@@ -1486,7 +1493,7 @@ jobs:
1486
1493
<< : *macos_environment
1487
1494
working_directory : " /Users/distiller/buck"
1488
1495
macos :
1489
- xcode : " 11.3 .1"
1496
+ xcode : " 12.5 .1"
1490
1497
steps :
1491
1498
- checkout
1492
1499
- run :
@@ -1512,7 +1519,7 @@ jobs:
1512
1519
<< : *linux_environment
1513
1520
working_directory : " /home/circleci/buck"
1514
1521
machine :
1515
- image : ubuntu-1604:201903-01
1522
+ image : ubuntu-2004:202107-02
1516
1523
steps :
1517
1524
- checkout
1518
1525
- run :
@@ -1577,7 +1584,7 @@ jobs:
1577
1584
<< : *linux_environment
1578
1585
working_directory : " /home/circleci/buck"
1579
1586
machine :
1580
- image : ubuntu-1604:201903-01
1587
+ image : ubuntu-2004:202107-02
1581
1588
steps :
1582
1589
- checkout
1583
1590
- run :
0 commit comments