Skip to content

Commit

Permalink
Use ts on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
aronisstav committed Oct 17, 2020
1 parent 7503a75 commit 0a7e761
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ jobs:
env:

# FLAG is used by Codecov reporter (.travis/after_success)
- TEST=".travis/maybe_cover make tests-1" FLAG="tests-1"
- TEST=".travis/maybe_cover make tests-2" FLAG="tests-2"
- TEST=".travis/maybe_cover make tests-real" FLAG="tests_real"
- TEST=".travis/run make tests-1" FLAG="tests-1"
- TEST=".travis/run make tests-2" FLAG="tests-2"
- TEST=".travis/run make tests-real" FLAG="tests_real"

otp_release:

Expand All @@ -88,6 +88,11 @@ otp_release:

# Travis build steps configuration

addons:
apt:
packages:
- moreutils

cache:
timeout: 5
directories:
Expand Down
3 changes: 2 additions & 1 deletion .travis/maybe_cover → .travis/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail

DIR=$(dirname $(readlink -f $0))
. $DIR/travis_enable_cover_if_latest
Expand All @@ -10,4 +11,4 @@ if [ "$ENABLE_COVER" = "true" ]; then
export CONCUERROR_COVER=$TOP/cover/data
fi

$@
$@ | ts
1 change: 1 addition & 0 deletions .travis/travis_enable_cover_if_latest
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ TOP=$(readlink -f $DIR/..)

REPO_LATEST=`$DIR/get_latest_travis $TOP/.travis.yml`

ENABLE_COVER=false
if [ "$REPO_LATEST" = "$TRAVIS_OTP_RELEASE" ]; then
if [ -z ${FLAG+x} ]; then
echo "FLAG not set, so no coverage generated"
Expand Down

0 comments on commit 0a7e761

Please sign in to comment.