./test is a directory?

when i try to use ant test or ./test {NUMBER} it says
ant test:

BUILD FAILED
Target "test" does not exist in the project "Disguises". 
Total time: 0 seconds
The command "ant test" exited with 1.

./test:

/home/travis/.travis/functions: line 109: ./test: Is a directory

201The command "./test 1" exited with 126.

and my build log for a ./test build is
test build log

and my log for ant test is
ant test build log

Please link to a build and use proper English. I can’t understand you or help you otherwise.

i have edited the original question

i have edited the original question to have what you wanted

I clearly see this directory at https://github.com/HD-901/Disguises/tree/0c7b63c669047176e1452810fd5bc812b270bd19. Not sure what you expected.

Other scripts in your .travis.yml also try to run scripts that don’t exist.

Since you have an Ant project, take a look at https://docs.travis-ci.com/user/languages/java/#projects-using-ant, this should get you started.


P.S. in the future, please link to the build itself rather than its log. I was able to find it at https://travis-ci.org/github/HD-901/Plugins/builds/703231331 but that cost extra time.

but it clearly says in build stages to run

jobs:
  include:
    - stage: test
      script: ./test 1
    - # stage name not required, will continue to use `test`
      script: ./test 2
    - stage: deploy
      script: ./deploy

and thats what i have thats in here https://docs.travis-ci.com/user/build-stages/ and my config is https://github.com/HD-901/Disguises/blob/master/.travis.yml except i added a build stage

That’s just a sample text for illustration. It’s not meant to be used verbatim, especially without understanding what it means.

oh ok then why does ant test say

Target "test" does not exist in the project "Disguises". 
Total time: 0 seconds
The command "ant test" exited with 1.```

Exactly as it says, you don’t have such a target in your build.xml. The build runs it because it’s the default which you didn’t override: https://docs.travis-ci.com/user/languages/java/#projects-using-ant, https://docs.travis-ci.com/user/job-lifecycle/.

1 Like

oh ok thanks for the help

Imprint