File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
resources/swift_hooks_repo Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 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
33set -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 '
99else
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
1212fi
1313
1414check () {
Original file line number Diff line number Diff line change 1+ // swift-tools-version:5.0
12import PackageDescription
23
34let package = Package (
4- name: " swift_hooks_repo "
5+ name: " swift_hooks_repo " ,
6+ targets: [ . target( name: " swift_hooks_repo " ) ]
57)
File renamed without changes.
You can’t perform that action at this time.
0 commit comments