Skip to content

Commit

Permalink
appveyor: try to fix yaml multiline syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Feb 18, 2017
1 parent 594bce6 commit 58082df
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,24 @@ install:
- '%CYG_ROOT%\bin\cygcheck --check-setup --dump-only'

before_build:
- '%CYG_ROOT%\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && make clean"'
- ps: >-
$BashPath = $env:CYG_ROOT + "\bin\bash"
- ps: |
$bash = $env:CYG_ROOT + "\bin\bash"
$cmd = "cd " + $env:APPVEYOR_BUILD_FOLDER + " && "
$cmd +=
@'
for f in $(git ls-files -s | awk '$1 == 120000 {print $4}')
do
# echo $f is a symlink pointing to $dir/$target
dir=$(dirname "${f}")
pushd "$dir" 2>&1 > /dev/null
file=$(basename "$f")
target=`cat "$file"`
rm "$file"
ln -s "$target" "$file"
popd 2>&1 > /dev/null
done
for f in $(git ls-files -s | awk '$1 == 120000 {print $4}')
do
# echo $f is a symlink pointing to $dir/$target
dir=$(dirname "${f}")
pushd "$dir" 2>&1 > /dev/null
file=$(basename "$f")
target=`cat "$file"`
rm "$file"
ln -s "$target" "$file"
popd 2>&1 > /dev/null
done
'@
& $BashPath -lc $cmd
& $bash -lc $cmd
build_script:
- '%CYG_ROOT%\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && make local && file vis"'
Expand Down

0 comments on commit 58082df

Please sign in to comment.