Build: Remove leftover Travis CI scripts.
This commit is contained in:
parent
fbe6562c22
commit
fb00ee314e
13
mk/kcov.sh
13
mk/kcov.sh
@ -1,13 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eux -o pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
output=target/kcov/unmerged/$(basename $1)
|
||||
echo $output
|
||||
kcov \
|
||||
--collect-only \
|
||||
--exclude-path=/usr/include \
|
||||
--include-pattern=ring/crypto,ring/src,ring/tests \
|
||||
--verify \
|
||||
$output \
|
||||
$1
|
68
mk/travis.sh
68
mk/travis.sh
@ -1,68 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Copyright 2015 Brian Smith.
|
||||
#
|
||||
# Permission to use, copy, modify, and/or distribute this software for any
|
||||
# purpose with or without fee is hereby granted, provided that the above
|
||||
# copyright notice and this permission notice appear in all copies.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
|
||||
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
|
||||
# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
||||
# OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
set -eux -o pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
source $HOME/.cargo/env
|
||||
|
||||
run_tests_on_host=1
|
||||
|
||||
case $TARGET_X in
|
||||
aarch64-apple-ios)
|
||||
run_tests_on_host=
|
||||
;;
|
||||
aarch64-unknown-linux-gnu)
|
||||
export QEMU_LD_PREFIX=/usr/aarch64-linux-gnu
|
||||
;;
|
||||
arm-unknown-linux-gnueabihf)
|
||||
export QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf
|
||||
;;
|
||||
aarch64-linux-android|armv7-linux-androideabi)
|
||||
run_tests_on_host=
|
||||
PATH=$HOME/.cargo/bin:$ANDROID_HOME/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
|
||||
;;
|
||||
esac
|
||||
|
||||
printenv
|
||||
|
||||
if [[ "$TARGET_X" =~ .*"-unknown-linux-musl" || ! "$TARGET_X" =~ "x86_64" ]]; then
|
||||
rustup target add "$TARGET_X"
|
||||
fi
|
||||
|
||||
if [[ "$MODE_X" == "RELWITHDEBINFO" ]]; then
|
||||
mode=--release
|
||||
target_dir=target/$TARGET_X/release
|
||||
else
|
||||
target_dir=target/$TARGET_X/debug
|
||||
fi
|
||||
|
||||
no_run=
|
||||
if [[ -z $run_tests_on_host ]]; then
|
||||
no_run=--no-run
|
||||
fi
|
||||
|
||||
if [ -n "${KCOV-}" ]; then
|
||||
mkdir -p target/kcov/unmerged
|
||||
fi
|
||||
|
||||
cargo test -vv -j2 ${mode-} ${no_run-} ${FEATURES_X-} --target=$TARGET_X
|
||||
|
||||
if [ -n "${KCOV-}" ]; then
|
||||
kcov --merge --coveralls-id=$TRAVIS_JOB_ID target/kcov/merged target/kcov/unmerged/*
|
||||
fi
|
||||
|
||||
echo end of mk/travis.sh
|
Loading…
x
Reference in New Issue
Block a user