fix encoding on build files

This commit is contained in:
Alberto Fanjul 2020-10-26 20:34:03 +01:00
parent 90fc16e77c
commit 6f2608d664
5 changed files with 1455 additions and 1455 deletions

976
.gitignore vendored

File diff suppressed because it is too large Load diff

View file

@ -1,11 +1,11 @@
i m a g e : V i s u a l S t u d i o 2 0 1 7
i n i t :
- g i t c o n f i g - - g l o b a l c o r e . a u t o c r l f i n p u t
b u i l d _ s c r i p t :
- c m d : b u i l d . c m d N u G e t
- c m d : . p a k e t \ p a k e t . e x e i n s t a l l
- c m d : g i t d i f f - - e x i t - c o d e
t e s t : o f f
v e r s i o n : 0 . 0 . 1 . { b u i l d }
a r t i f a c t s :
- p a t h : ' b i n \ * . n u p k g '
image: Visual Studio 2017
init:
- git config --global core.autocrlf input
build_script:
- cmd: build.cmd NuGet
- cmd: .paket\paket.exe install
- cmd: git diff --exit-code
test: off
version: 0.0.1.{build}
artifacts:
- path: 'bin\*.nupkg'

View file

@ -1,28 +1,28 @@
@ e c h o o f f
c l s
@echo off
cls
. p a k e t \ p a k e t . b o o t s t r a p p e r . e x e
i f e r r o r l e v e l 1 (
e x i t / b % e r r o r l e v e l %
)
.paket\paket.bootstrapper.exe
if errorlevel 1 (
exit /b %errorlevel%
)
. p a k e t \ p a k e t . e x e r e s t o r e
i f e r r o r l e v e l 1 (
e x i t / b % e r r o r l e v e l %
)
.paket\paket.exe restore
if errorlevel 1 (
exit /b %errorlevel%
)
I F N O T E X I S T b u i l d . f s x (
. p a k e t \ p a k e t . e x e u p d a t e
p a c k a g e s \ F A K E \ t o o l s \ F A K E . e x e i n i t . f s x
)
IF NOT EXIST build.fsx (
.paket\paket.exe update
packages\FAKE\tools\FAKE.exe init.fsx
)
S E T B u i l d T a r g e t =
i f " % B u i l d R u n n e r % " = = " M y G e t " (
S E T B u i l d T a r g e t = N u G e t
SET BuildTarget=
if "%BuildRunner%" == "MyGet" (
SET BuildTarget=NuGet
: : R e p l a c e t h e e x i s t i n g r e l e a s e n o t e s f i l e w i t h o n e f o r t h i s b u i l d o n l y
e c h o # # # % P a c k a g e V e r s i o n % > R E L E A S E _ N O T E S . m d
e c h o * g i t b u i l d > > R E L E A S E _ N O T E S . m d
)
:: Replace the existing release notes file with one for this build only
echo ### %PackageVersion% > RELEASE_NOTES.md
echo * git build >> RELEASE_NOTES.md
)
p a c k a g e s \ F A K E \ t o o l s \ F A K E . e x e b u i l d . f s x % * % B u i l d T a r g e t %
packages\FAKE\tools\FAKE.exe build.fsx %* %BuildTarget%

View file

@ -1,36 +1,36 @@
# ! / u s r / b i n / e n v b a s h
#!/usr/bin/env bash
s e t - e u
s e t - o p i p e f a i l
set -eu
set -o pipefail
c d ` d i r n a m e $ 0 `
cd `dirname $0`
F S I A R G S = " "
O S = $ { O S : - " u n k n o w n " }
i f [ [ " $ O S " ! = " W i n d o w s _ N T " ] ]
t h e n
F S I A R G S = " - - f s i a r g s - d : M O N O "
f i
FSIARGS=""
OS=${OS:-"unknown"}
if [[ "$OS" != "Windows_NT" ]]
then
FSIARGS="--fsiargs -d:MONO"
fi
f u n c t i o n r u n ( ) {
i f [ [ " $ O S " ! = " W i n d o w s _ N T " ] ]
t h e n
m o n o " $ @ "
e l s e
" $ @ "
f i
}
function run() {
if [[ "$OS" != "Windows_NT" ]]
then
mono "$@"
else
"$@"
fi
}
r u n . p a k e t / p a k e t . b o o t s t r a p p e r . e x e
run .paket/paket.bootstrapper.exe
i f [ [ " $ O S " ! = " W i n d o w s _ N T " ] ] & &
[ ! - e ~ / . c o n f i g / . m o n o / c e r t s ]
t h e n
m o z r o o t s - - i m p o r t - - s y n c - - q u i e t
f i
if [[ "$OS" != "Windows_NT" ]] &&
[ ! -e ~/.config/.mono/certs ]
then
mozroots --import --sync --quiet
fi
r u n . p a k e t / p a k e t . e x e r e s t o r e
run .paket/paket.exe restore
[ ! - e b u i l d . f s x ] & & r u n . p a k e t / p a k e t . e x e u p d a t e
[ ! - e b u i l d . f s x ] & & r u n p a c k a g e s / F A K E / t o o l s / F A K E . e x e i n i t . f s x
r u n p a c k a g e s / F A K E / t o o l s / F A K E . e x e " $ @ " $ F S I A R G S b u i l d . f s x
[ ! -e build.fsx ] && run .paket/paket.exe update
[ ! -e build.fsx ] && run packages/FAKE/tools/FAKE.exe init.fsx
run packages/FAKE/tools/FAKE.exe "$@" $FSIARGS build.fsx