appveyor / ci

AppVeyor community support repository
https://www.appveyor.com
344 stars 66 forks source link

appveyor.yml is not executed #3863

Closed ibardarov-fms closed 1 year ago

ibardarov-fms commented 1 year ago

I want to run a build locally on my machine. I have installed a blank new server. Created a new project, and added a local path as git source. Environment -> Build cloud -> Process

I have tried with empty appveyor.yml and the project appveyor.yml but I constantly get some error message which doesn't make any sense to me.

Build started
git clone -q --branch=MC-399-some-ticket-description file:///home/guda/projects/someproject /tmp/z-y21tojlkqjuw48qd
Running "build" phase
The build phase is set to "MSBuild" mode (default), but no Visual Studio project or solution files were found in the root directory. If you are not building Visual Studio project switch build mode to "Script" and provide your custom build command.
Running "test" phase
Build completed

If I change the run mode to script and use only ls -la, the I can see that the appveyor.yml is there.

Build started
git clone -q --branch=MC-399-some-ticket-description file:///home/guda/projects/some-project /tmp/z-1fjls106n8ncsfeo
Running "build_script" scripts
ls -la
total 132
drwxr-xr-x 10 appveyor appveyor  4096 яну 11 11:00 .
drwxrwxrwt 48 root     root     24576 яну 11 11:00 ..
-rw-r--r--  1 appveyor appveyor  2267 яну 11 11:00 appveyor.yml
drwxr-xr-x  2 appveyor appveyor  4096 яну 11 11:00 .astro
-rw-r--r--  1 appveyor appveyor  1252 яну 11 11:00 docker-entrypoint.sh
-rw-r--r--  1 appveyor appveyor   360 яну 11 11:00 Dockerfile
-rw-r--r--  1 appveyor appveyor   115 яну 11 11:00 .dockerignore
-rw-r--r--  1 appveyor appveyor     0 яну 11 11:00 .env
-rw-r--r--  1 appveyor appveyor   519 яну 11 11:00 .envrc
drwxr-xr-x  8 appveyor appveyor  4096 яну 11 11:00 .git
-rw-r--r--  1 appveyor appveyor  6176 яну 11 11:00 .gitignore
drwxr-xr-x  4 appveyor appveyor  4096 яну 11 11:00 .gitsecret
-rw-r--r--  1 appveyor appveyor   546 яну 11 11:00 NuGet.config
-rw-r--r--  1 appveyor appveyor   367 яну 11 11:00 Package-Deployment.ps1
-rw-r--r--  1 appveyor appveyor   831 яну 11 11:00 Publish-App.ps1
-rw-r--r--  1 appveyor appveyor   340 яну 11 11:00 pyproject.toml
-rw-r--r--  1 appveyor appveyor  1057 яну 11 11:00 README.md
-rw-r--r--  1 appveyor appveyor    41 яну 11 11:00 REVISION.txt
-rw-r--r--  1 appveyor appveyor    28 яну 11 11:00 .tool-versions
-rw-r--r--  1 appveyor appveyor    41 яну 11 11:00 .user.yml
Running "test" phase
Build completed

sample appveyor.yml

image:
  - Ubuntu
build_script:
  - pwsh: ./Publish-App.ps1

What am I doing wrong?

FeodorFitsner commented 1 year ago

Yep, appveyor.yml are not working with regular Git repositories. However, you can host appveyor.yml somewhere, for example GitHub gists and then paste a URL to a raw content to "Custom configuration .yml file name" field on General project settings.

ibardarov-fms commented 1 year ago

It worked. Thanks!

I have run a local http server in my project home folder.