Skip to content

Commit 76a184e

Browse files
committed
Update get-swift for bionic
1 parent 4eea90c commit 76a184e

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

testing/get-swift.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/usr/bin/env bash
2-
# This is a script used in travis-ci to install swift
2+
# This is a script used in CI to install swift
33
set -euxo pipefail
44

55
. /etc/lsb-release
6-
if [ "$DISTRIB_CODENAME" = "trusty" ]; then
7-
SWIFT_URL='https://swift.org/builds/swift-4.0.3-release/ubuntu1404/swift-4.0.3-RELEASE/swift-4.0.3-RELEASE-ubuntu14.04.tar.gz'
8-
SWIFT_HASH="dddb40ec4956e4f6a3f4532d859691d5d1ba8822f6e8b4ec6c452172dbede5ae"
6+
if [ "$DISTRIB_CODENAME" = "bionic" ]; then
7+
SWIFT_URL='https://swift.org/builds/swift-5.1.3-release/ubuntu1804/swift-5.1.3-RELEASE/swift-5.1.3-RELEASE-ubuntu18.04.tar.gz'
8+
SWIFT_HASH='ac82ccd773fe3d586fc340814e31e120da1ff695c6a712f6634e9cc720769610'
99
else
10-
SWIFT_URL='https://swift.org/builds/swift-4.0.3-release/ubuntu1604/swift-4.0.3-RELEASE/swift-4.0.3-RELEASE-ubuntu16.04.tar.gz'
11-
SWIFT_HASH="9adf64cabc7c02ea2d08f150b449b05e46bd42d6e542bf742b3674f5c37f0dbf"
10+
echo "unknown dist: ${DISTRIB_CODENAME}" 1>&2
11+
exit 1
1212
fi
1313

1414
check() {
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
// swift-tools-version:5.0
12
import PackageDescription
23

34
let package = Package(
4-
name: "swift_hooks_repo"
5+
name: "swift_hooks_repo",
6+
targets: [.target(name: "swift_hooks_repo")]
57
)

testing/resources/swift_hooks_repo/Sources/main.swift renamed to testing/resources/swift_hooks_repo/Sources/swift_hooks_repo/main.swift

File renamed without changes.

0 commit comments

Comments
 (0)