Move testing scripts into testing

This commit is contained in:
Anthony Sottile 2018-06-05 18:26:02 -07:00
parent 7cd2364da7
commit f0842429b9
3 changed files with 2 additions and 2 deletions

16
testing/get-swift.sh Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
# This is a script used in travis-ci to install swift
set -ex
. /etc/lsb-release
if [ "$DISTRIB_CODENAME" = "trusty" ]; then
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'
else
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'
fi
mkdir -p /tmp/swift
pushd /tmp/swift
wget "$SWIFT_URL" -O swift.tar.gz
tar -xf swift.tar.gz --strip 1
popd

7
testing/latest-git.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# This is a script used in travis-ci to have latest git
set -ex
git clone git://github.com/git/git --depth 1 /tmp/git
pushd /tmp/git
make prefix=/tmp/git -j8 install
popd