mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
revert travis-ci speed optimization for regression issue (#1676)
* revert travis-ci speed optimization for regression issue * remove osx
This commit is contained in:
parent
a37f7bbcab
commit
1b4885eedd
1 changed files with 17 additions and 28 deletions
45
.travis.yml
45
.travis.yml
|
@ -13,12 +13,9 @@ sudo: required
|
|||
cache:
|
||||
cargo: true
|
||||
timeout: 240
|
||||
directories:
|
||||
- $HOME/.cargo
|
||||
- $TRAVIS_BUILD_DIR/target
|
||||
|
||||
before_cache:
|
||||
- rm -rf $TRAVIS_BUILD_DIR/target/tmp
|
||||
- rm -rf target/tmp
|
||||
|
||||
rust:
|
||||
- stable
|
||||
|
@ -45,33 +42,25 @@ env:
|
|||
- RUST_BACKTRACE="1"
|
||||
- RUST_FLAGS="-C debug-assertions"
|
||||
matrix:
|
||||
- TEST_SUITE=servers
|
||||
- TEST_SUITE=chain-core
|
||||
- TEST_SUITE=pool-p2p
|
||||
- TEST_SUITE=keychain-wallet
|
||||
- TEST_SUITE=api-util-store
|
||||
- RUST_TEST_THREADS=1 TEST_DIR=servers
|
||||
- TEST_DIR=store
|
||||
- TEST_DIR=chain
|
||||
- TEST_DIR=pool
|
||||
- TEST_DIR=wallet
|
||||
- TEST_DIR=p2p
|
||||
- TEST_DIR=api
|
||||
- TEST_DIR=keychain
|
||||
- TEST_DIR=core
|
||||
- TEST_DIR=util
|
||||
- TEST_DIR=config
|
||||
- TEST_DIR=none
|
||||
|
||||
script:
|
||||
- IFS='-' read -r -a DIRS <<< "$TEST_SUITE"; DIR=${DIRS[0]};
|
||||
echo "start testing on folder $DIR...";
|
||||
if [[ -n "$DIR" ]]; then cd $DIR && cargo test --release; cd - > /dev/null; fi;
|
||||
- IFS='-' read -r -a DIRS <<< "$TEST_SUITE"; DIR=${DIRS[1]};
|
||||
if [[ -n "$DIR" ]]; then
|
||||
echo "start testing on folder $DIR...";
|
||||
cd $DIR && cargo test --release; cd - > /dev/null;
|
||||
fi;
|
||||
- IFS='-' read -r -a DIRS <<< "$TEST_SUITE"; DIR=${DIRS[2]};
|
||||
if [[ -n "$DIR" ]]; then
|
||||
echo "start testing on folder $DIR...";
|
||||
cd $DIR && cargo test --release; cd - > /dev/null;
|
||||
fi;
|
||||
- if [[ "$TEST_DIR" == "none" ]]; then cargo build --release; fi
|
||||
- if [[ "$TEST_DIR" != "none" ]]; then cd $TEST_DIR && cargo test --release; fi
|
||||
|
||||
before_deploy:
|
||||
- if [[ "TEST_SUITE" == "pool-p2p" ]]; then
|
||||
cargo clean;
|
||||
cargo build --release;
|
||||
./.auto-release.sh;
|
||||
fi
|
||||
- if [[ "$TEST_DIR" == "none" ]]; then ./.auto-release.sh; fi
|
||||
|
||||
deploy:
|
||||
provider: releases
|
||||
|
@ -83,6 +72,6 @@ deploy:
|
|||
on:
|
||||
repo: mimblewimble/grin
|
||||
tags: true
|
||||
condition: $TEST_SUITE = "pool-p2p"
|
||||
condition: $TEST_DIR = "none"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue