From 7c6b34d53d584332df4273922a67b46dc550f573 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Sun, 25 Nov 2018 09:53:28 +0800 Subject: [PATCH] test travis fold --- .travis.yml | 2 ++ .travis/travis_fold.sh | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100755 .travis/travis_fold.sh diff --git a/.travis.yml b/.travis.yml index f57506f..138a40c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,4 +10,6 @@ script: - sudo apt-get install -y lxc lxc-templates debootstrap lxc-dev - pip install ansible - pip install -r test-requirements.txt + - ./.travis/travis_fold.sh start test - sudo -E molecule test -s lxc + - ./.travis/travis_fold.sh end test diff --git a/.travis/travis_fold.sh b/.travis/travis_fold.sh new file mode 100755 index 0000000..7583370 --- /dev/null +++ b/.travis/travis_fold.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +travis_fold(){ + local action=$1 + local name=$2 + echo -en "travis_fold:${action}:${name}\\r" +} + +travis_fold $1 $2