HD-901
June 29, 2020, 4:51pm
1
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.
HD-901
June 30, 2020, 2:48am
4
i have edited the original question
HD-901
June 30, 2020, 2:52am
5
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 Building a Java project - Travis CI , 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 Travis CI - Test and Deploy with Confidence but that cost extra time.
HD-901
June 30, 2020, 4:48am
9
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.
HD-901
June 30, 2020, 5:23am
11
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
HD-901
June 30, 2020, 5:56am
13
oh ok thanks for the help