summaryrefslogtreecommitdiffstats
path: root/ci/script.sh
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-20 18:37:29 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-20 18:37:29 +0100
commit23f62d84d1232b7ef5ec02483a8090aa5c336fa6 (patch)
treeeac297767f552302887ef75ccbb62fb01378637e /ci/script.sh
parent065e5eab4a0278b77bd0b14167a662776f491921 (diff)
downloadads1x1x-async-23f62d84d1232b7ef5ec02483a8090aa5c336fa6.tar.gz
ads1x1x-async-23f62d84d1232b7ef5ec02483a8090aa5c336fa6.tar.xz
ads1x1x-async-23f62d84d1232b7ef5ec02483a8090aa5c336fa6.zip
Use centralized CI
Diffstat (limited to 'ci/script.sh')
-rw-r--r--ci/script.sh38
1 files changed, 0 insertions, 38 deletions
diff --git a/ci/script.sh b/ci/script.sh
deleted file mode 100644
index b13d9e2..0000000
--- a/ci/script.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-set -exo pipefail
-
-main() {
- if [ ! -z $COVERAGE ] && [ $TRAVIS_RUST_VERSION = nightly ]; then
- export CARGO_INCREMENTAL=0;
- export RUSTFLAGS="-Zprofile -Ccodegen-units=1";
- fi
-
- if [[ ! $TARGET =~ .*linux.* ]]; then
- sed -i "s/linux-embedded-hal/#linux-embedded-hal/g" Cargo.toml
- sed -i "s/embedded-hal-mock/#embedded-hal-mock/g" Cargo.toml
- fi
-
- if [ ! -z $FEATURES ]; then
- export FEATURES="--features $FEATURES"
- fi
-
- cargo check --target $TARGET $FEATURES
- cargo build --target $TARGET --release $FEATURES
- if [ -z $DISABLE_EXAMPLES ] && [[ $TARGET =~ .*linux.* ]]; then
- cargo build --target $TARGET $FEATURES --examples
- fi
-
- if [ -z $DISABLE_TESTS ] && [ $TRAVIS_RUST_VERSION = nightly ] && [[ $TARGET =~ .*linux.* ]]; then
- cargo test --target $TARGET $FEATURES
- if [ ! -z $COVERAGE ]; then
- find . -name "*.gc*" -print
- zip -0 ccov.zip `find . \( -name "ads1x1x*.gc*" -o -name "tier*.gc*" -o -name "mux*.gc*" -o -name "construction*.gc*" -o -name "linux-*.gc*" -o -name "llvmgcov.gc*" \) -print`;
- grcov ccov.zip -s . -t lcov --llvm --branch --ignore-not-existing --ignore-dir "/*" > lcov.info;
- bash <(curl -s https://codecov.io/bash) -f lcov.info;
- grcov ./target -t coveralls+ -s . --token `echo "$COVERALLS_TOKEN"` --commit-sha `echo "$TRAVIS_COMMIT"` --llvm --branch --ignore-not-existing --ignore-dir "/*"
- fi
- fi
-
-
-}
-
-main