From 3cecfd8711ea23c2a5103c9d4c0204691a2c1890 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 7 Oct 2014 08:16:56 -0500 Subject: [PATCH] Add notes about and variable substitution --- doc/travis_notes.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/travis_notes.txt b/doc/travis_notes.txt index 41118669..7256b007 100644 --- a/doc/travis_notes.txt +++ b/doc/travis_notes.txt @@ -16,5 +16,10 @@ Travis Notes: ``` - "If" blocks cannot contain comments +- All travis commands are run with `eval` and quotes are taken as literal characters + unless you wrap the whole line in quotes: +`echo "hello : world"` is interpreted as `echo \"hello : world\"` +`"echo 'hello : world'"` is interpreted as `echo 'hello : world'` +`"echo 'hello : '$(MYVAR)'world'"` is interpreted as `echo 'hello : $(MYVAR)world'` - Use `travis_retry` before a command to have it try several times before failing (useful for installing from third party sources)