mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Move testing scripts into testing
This commit is contained in:
parent
7cd2364da7
commit
f0842429b9
3 changed files with 2 additions and 2 deletions
16
testing/get-swift.sh
Executable file
16
testing/get-swift.sh
Executable 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
7
testing/latest-git.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue