Skip to content

Commit 7a6132d

Browse files
authored
Merge pull request swiftlang#27103 from benlangmuir/llbuild-presets
Add presets for llbuild smoke tests and add testing of sourcekit-lsp
2 parents df0ed6b + 69055f3 commit 7a6132d

File tree

1 file changed

+77
-102
lines changed

1 file changed

+77
-102
lines changed

utils/build-presets.ini

Lines changed: 77 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,182 +1409,157 @@ skip-test-osx
14091409

14101410

14111411
#===------------------------------------------------------------------------===#
1412-
# Test swiftPM on macOS builder
1412+
# Mixins for LLBuild, SwiftPM and downstream package project PR tests.
14131413
#===------------------------------------------------------------------------===#
1414-
1415-
[preset: buildbot_swiftpm_macos_platform,tools=RA,stdlib=RA]
1416-
mixin-preset=
1417-
buildbot_incremental_base
1418-
mixin_buildbot_install_components_with_clang
1419-
1414+
[preset: mixin_swiftpm_base]
1415+
mixin-preset=buildbot_incremental_base
14201416
build-subdir=buildbot_incremental
14211417

1422-
# Build Release without debug info, because it is faster to build.
1423-
release
1424-
assertions
1425-
14261418
libcxx
1427-
1428-
# Build llbuild & swiftpm here
14291419
llbuild
14301420
swiftpm
14311421

1432-
sourcekit-lsp
1433-
14341422
install-swift
14351423
install-llbuild
14361424
install-swiftpm
14371425
install-libcxx
14381426

1439-
dash-dash
1440-
14411427
skip-test-swift
14421428
skip-test-cmark
1443-
skip-test-llbuild
14441429

1445-
#===------------------------------------------------------------------------===#
1446-
# Test swiftPM on Linux builder
1447-
#===------------------------------------------------------------------------===#
1430+
[preset: mixin_swiftpm_macos_platform]
1431+
mixin-preset=
1432+
mixin_swiftpm_base
1433+
mixin_buildbot_install_components_with_clang
14481434

1449-
[preset: buildbot_swiftpm_linux_platform,tools=RA,stdlib=RA]
1435+
[preset: mixin_swiftpm_linux_platform]
14501436
mixin-preset=
1451-
buildbot_incremental_base
1437+
mixin_swiftpm_base
14521438
mixin_linux_install_components_with_clang
14531439

1454-
build-subdir=buildbot_incremental
1455-
1456-
# Build Release without debug info, because it is faster to build.
1457-
release
1458-
assertions
1459-
1460-
swiftpm
1461-
1462-
xctest
1463-
foundation
14641440
libdispatch
1465-
llbuild
1466-
libcxx
1467-
sourcekit-lsp
1441+
foundation
1442+
xctest
14681443

1469-
install-swift
1470-
install-llbuild
1471-
install-swiftpm
14721444
install-foundation
14731445
install-libdispatch
14741446
install-xctest
1475-
install-libcxx
14761447

1477-
skip-test-swift
1478-
skip-test-cmark
1479-
skip-test-llbuild
1480-
skip-test-libdispatch
14811448
skip-test-foundation
1449+
skip-test-libdispatch
14821450
skip-test-xctest
14831451

1452+
# Builds enough of the the toolchain to build a swift pacakge on macOS.
1453+
[preset: mixin_swiftpm_package_macos_platform]
1454+
mixin-preset=mixin_swiftpm_macos_platform
1455+
1456+
# Build stdlib for all platforms.
1457+
ios
1458+
tvos
1459+
watchos
1460+
1461+
skip-test-llbuild
1462+
skip-test-swiftpm
1463+
1464+
# Builds enough of the the toolchain to build a swift pacakge on Linux.
1465+
[preset: mixin_swiftpm_package_linux_platform]
1466+
mixin-preset=mixin_swiftpm_linux_platform
1467+
1468+
skip-test-llbuild
1469+
skip-test-swiftpm
1470+
1471+
14841472
#===------------------------------------------------------------------------===#
1485-
# Test llbuild on macOS builder
1473+
# Test swiftPM on macOS builder
14861474
#===------------------------------------------------------------------------===#
14871475

1488-
[preset: buildbot_llbuild_macos_platform,tools=RA,stdlib=RA]
1489-
mixin-preset=buildbot_incremental_base
1490-
1491-
build-subdir=buildbot_incremental
1476+
[preset: buildbot_swiftpm_macos_platform,tools=RA,stdlib=RA]
1477+
mixin-preset=mixin_swiftpm_macos_platform
14921478

14931479
# Build Release without debug info, because it is faster to build.
14941480
release
14951481
assertions
14961482

1497-
# Build llbuild & swiftpm here
1498-
llbuild
1499-
swiftpm
1500-
1501-
dash-dash
1483+
# Downstream projects that import llbuild+SwiftPM.
1484+
sourcekit-lsp
15021485

1503-
skip-test-swift
1504-
skip-test-cmark
1486+
skip-test-llbuild
15051487

15061488
#===------------------------------------------------------------------------===#
1507-
# Test Swift Packages
1489+
# Test swiftPM on Linux builder
15081490
#===------------------------------------------------------------------------===#
15091491

1510-
[preset: buildbot_swiftpm_package_base]
1511-
mixin-preset=buildbot_incremental_base
1512-
1513-
build-subdir=buildbot_incremental
1492+
[preset: buildbot_swiftpm_linux_platform,tools=RA,stdlib=RA]
1493+
mixin-preset=mixin_swiftpm_linux_platform
15141494

1495+
# Build Release without debug info, because it is faster to build.
15151496
release
15161497
assertions
15171498

1518-
libcxx
1519-
llbuild
1520-
swiftpm
1521-
indexstore-db
1499+
# Downstream projects that import llbuild+SwiftPM.
15221500
sourcekit-lsp
15231501

1524-
install-swift
1525-
install-llbuild
1526-
install-swiftpm
1527-
install-libcxx
1528-
1529-
skip-test-swift
1530-
skip-test-cmark
15311502
skip-test-llbuild
1532-
skip-test-swiftpm
15331503

1534-
[preset: buildbot_swiftpm_package_macos]
1535-
mixin-preset=
1536-
buildbot_swiftpm_package_base
1537-
mixin_buildbot_install_components_with_clang
1504+
#===------------------------------------------------------------------------===#
1505+
# Test llbuild on macOS builder
1506+
#===------------------------------------------------------------------------===#
15381507

1539-
# Build stdlib for all platforms.
1540-
ios
1541-
tvos
1542-
watchos
1508+
[preset: buildbot_llbuild_macos_platform,tools=RA,stdlib=RA]
1509+
mixin-preset=mixin_swiftpm_macos_platform
15431510

1544-
[preset: buildbot_swiftpm_package_linux]
1545-
mixin-preset=
1546-
buildbot_swiftpm_package_base
1547-
mixin_linux_install_components_with_clang
1511+
# Build Release without debug info, because it is faster to build.
1512+
release
1513+
assertions
15481514

1549-
libdispatch
1550-
foundation
1551-
xctest
1515+
# Downstream projects that import llbuild+SwiftPM.
1516+
sourcekit-lsp
15521517

1553-
install-foundation
1554-
install-libdispatch
1555-
install-xctest
1518+
#===------------------------------------------------------------------------===#
1519+
# Test llbuild on Linux builder
1520+
#===------------------------------------------------------------------------===#
15561521

1557-
skip-test-foundation
1558-
skip-test-libdispatch
1559-
skip-test-xctest
1522+
[preset: buildbot_llbuild_linux_platform,tools=RA,stdlib=RA]
1523+
mixin-preset=mixin_swiftpm_linux_platform
1524+
1525+
# Build Release without debug info, because it is faster to build.
1526+
release
1527+
assertions
1528+
1529+
# Downstream projects that import llbuild+SwiftPM.
1530+
sourcekit-lsp
15601531

15611532
#===------------------------------------------------------------------------===#
15621533
# Test SourceKit-LSP
15631534
#===------------------------------------------------------------------------===#
15641535

15651536
[preset: buildbot_sourcekitlsp_macos]
1566-
mixin-preset=buildbot_swiftpm_package_macos
1567-
1537+
mixin-preset=mixin_swiftpm_package_macos_platform
1538+
release
1539+
assertions
15681540
sourcekit-lsp
15691541

15701542
[preset: buildbot_sourcekitlsp_linux]
1571-
mixin-preset=buildbot_swiftpm_package_linux
1572-
1543+
mixin-preset=mixin_swiftpm_package_linux_platform
1544+
release
1545+
assertions
15731546
sourcekit-lsp
15741547

15751548
#===------------------------------------------------------------------------===#
15761549
# Test IndexStore-DB
15771550
#===------------------------------------------------------------------------===#
15781551

15791552
[preset: buildbot_indexstoredb_macos]
1580-
mixin-preset=buildbot_swiftpm_package_macos
1581-
1553+
mixin-preset=mixin_swiftpm_package_macos_platform
1554+
release
1555+
assertions
15821556
indexstore-db
15831557
sourcekit-lsp
15841558

15851559
[preset: buildbot_indexstoredb_linux]
1586-
mixin-preset=buildbot_swiftpm_package_linux
1587-
1560+
mixin-preset=mixin_swiftpm_package_linux_platform
1561+
release
1562+
assertions
15881563
indexstore-db
15891564
sourcekit-lsp
15901565

0 commit comments

Comments
 (0)