Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Override default Travis CI script for Java Gradle project

No matter what I write to .travis.yml Travis CI always executes ./gradlew assemble. I would like to run ./gradlew test instead.

Contents of my .travis.yml:

language: java

script:
    - ./gradlew test

Feel free to fix my failed build: https://github.com/RadoBuransky/scala-struct

like image 630
Rado Buransky Avatar asked Oct 25 '14 19:10

Rado Buransky


1 Answers

The script ./gradle assemble is run as part of the install section of your build, it's the default.

If you want to skip this step, you can override it like so:

install: true

Docs: https://docs.travis-ci.com/user/customizing-the-build/#Skipping-the-Installation-Step

like image 188
roidrage Avatar answered Nov 08 '22 19:11

roidrage