Using travis-ci for bukkit

Discussion in 'Bukkit Help' started by Condolent, Jan 3, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    Condolent

    Hi, has anyone here any experience with travis-ci for their plugin?

    I'm trying to integrate it for all my plugins that I've uploaded to github but I keep getting the same error:
    Code:
    BUILD FAILED
    Target "test" does not exist in the project "RPGPrototype".
    Total time: 0 seconds
    The command "ant test" exited with 1.
    Anyone know what I need to do?

    This is my .travis.yml
    Code:
    language: java
    jdk:
      - oraclejdk8
      - openjdk7
    notifications:
      email: false
    And my build.xml:
    Code:
    <project name="RPGPrototype" default="dist" basedir=".">
        <property name="pluginname" value="RPGPrototype"/>
        <property name="bukkit.jar" location="../Bukkit/dist/Bukkit.jar"/>
        <property name="plugins" location="../../plugins/"/>
    
        <property name="src" location="src"/>
        <property name="bin" location="bin"/>
        <property name="dist" location="dist"/>
       
        <target name="init">
            <mkdir dir="${bin}"/>
        </target>
       
        <target name="compile" depends="init">
            <javac srcdir="${src}/main/java" destdir="${bin}" includeantruntime="false">
                <classpath>
                    <pathelement location="${bukkit.jar}"/>
                </classpath>
            </javac>
        </target>
       
        <target name="dist" depends="compile">
            <mkdir dir="${dist}"/>
            <jar jarfile="${dist}/${pluginname}.jar">
                <fileset dir="${bin}"/>
                <fileset file="${src}/main/resources/plugin.yml"/>
            </jar>
        </target>
       
        <target name="deploy" depends="dist">
            <copy file="${dist}/${pluginname}.jar" todir="${plugins}"/>
        </target>
       
        <target name="clean">
            <delete dir="${bin}"/>
            <delete dir="${dist}"/>
        </target>
    </project>
     
Thread Status:
Not open for further replies.

Share This Page