mauroc / squiddio_pi

squiddio_pi
3 stars 13 forks source link

appveyor.yml failures - change to "mkdir" on line 37 #43

Closed rgleason closed 5 years ago

rgleason commented 5 years ago

appveyor.yml

Problem: When the directory exists, appveyor throws an error and does not build. I've been whipsawed by this problem. Also when the directory does not exist, you need the mkdir build command. This seems to work. I have not tried relative paths, maybe that will work, but my reading showed this works, and it does, but would be interested in better solutions (would a simple "rmdir build" work without throwing an error, before mkdir?).

https://github.com/rgleason/squiddio_pi/commits/master https://ci.appveyor.com/project/rgleason/squiddio-pi/builds/27973856

before_build:
  - cd c:\project\squiddio_pi
#  - mkdir -p build
  - if not exist "c:\project\squiddio_pi\build" mkdir c:\project\squiddio_pi\build
  - cd build
rgleason commented 5 years ago

Found this line in Alec Leamas PR

rm -rf build && mkdir build && cd build

Looks pretty good to me, maybe it will work with appveyor.yml

rgleason commented 5 years ago

That works!

before_build:
  - cd c:\project\squiddio_pi
#  - mkdir -p build
#  - if not exist "c:\project\squiddio_pi\build" mkdir c:\project\squiddio_pi\build
  - rm -rf build && mkdir build && cd build
#  - cd build
rgleason commented 5 years ago

Merged, builds.