mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-03 00:38:00 +00:00
Merge pull request #58 from Parabot/feature/travis
[FEATURE] Added Travis to API
This commit is contained in:
+54
@@ -0,0 +1,54 @@
|
||||
language: java
|
||||
|
||||
jdk:
|
||||
- oraclejdk7
|
||||
- oraclejdk8
|
||||
|
||||
before_install:
|
||||
- chmod +x ./.travis/maven-build.sh
|
||||
- chmod +x ./.travis/call-creation.sh
|
||||
- mvn clean
|
||||
|
||||
install:
|
||||
- sudo apt-get update && sudo apt-get --assume-yes install zip unzip
|
||||
|
||||
script: "./.travis/maven-build.sh"
|
||||
|
||||
after_deploy: "./.travis/call-creation.sh"
|
||||
|
||||
notifications:
|
||||
email: false
|
||||
slack:
|
||||
secure: osWX769z0hSVPbeF1ZHSENgR4i+VKFTMGFNIV02RhvZ4a1BXsGUG5VCCDYUoBzWPCA5avJHg+FrN7nEEaoIjc5/qqFmZFGwOitZJsOzvR8C18QcgyuEX+35U4eQF4h5ITpruvwNNQ/7hIWyPl/fEPcAswHFDAccEb5iRNJeFNeM=
|
||||
webhooks:
|
||||
on_success: always
|
||||
on_failure: always
|
||||
on_start: never
|
||||
|
||||
env:
|
||||
global:
|
||||
- PROVIDER_VERSION=1.201
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- ".autoconf"
|
||||
- "$HOME/.m2"
|
||||
|
||||
deploy:
|
||||
- provider: s3
|
||||
access_key_id: AKIAJDZLZNH2PIKHUKOA
|
||||
secret_access_key:
|
||||
secure: Opk2uGg0CyBIeqDX5EIu6UBRjaxjZwfNVNsjGbsA8QWjIu2zIUwFe1ZWJEkqzF5jqrN8ykgHw74ofrgZyBKH2nhGn7MN4wWWktKN4iIeq2D6gf8Cq31tzZcpgEfUaJnARXtu0jjCKag2PqglQAEc/OgVEeEFuUapJ0I4ITDZWbk=
|
||||
bucket: parabot
|
||||
skip_cleanup: true
|
||||
local-dir: "./target/final/"
|
||||
upload-dir: "artifacts/provider"
|
||||
region: us-west-1
|
||||
detect_encoding: true
|
||||
acl: public_read
|
||||
on:
|
||||
repo: Parabot/Parabot-317-API-Minified
|
||||
branch:
|
||||
- master
|
||||
- development
|
||||
jdk: 'oraclejdk7'
|
||||
@@ -0,0 +1,4 @@
|
||||
#! /bin/bash
|
||||
|
||||
sleep 1
|
||||
curl --data "build_id=$TRAVIS_BUILD_ID&version=$PROVIDER_VERSION" "http://v3.bdn.parabot.org/api/bot/create/provider"
|
||||
@@ -0,0 +1,7 @@
|
||||
#! /bin/bash
|
||||
|
||||
if [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||
mvn -U package
|
||||
else
|
||||
mvn -Dbuild.version="-RC-$TRAVIS_BUILD_ID" -U package
|
||||
fi
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>org.parabot</groupId>
|
||||
<artifactId>317-api-minified</artifactId>
|
||||
<version>1.15</version>
|
||||
<version>1.201</version>
|
||||
<name>Parabot 317-API-Minified</name>
|
||||
|
||||
<licenses>
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
<properties>
|
||||
<jdk.version>1.7</jdk.version>
|
||||
<build.version></build.version>
|
||||
<additionalparam>-Xdoclint:none</additionalparam>
|
||||
</properties>
|
||||
|
||||
@@ -39,7 +40,7 @@
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>${artifactId}-V${version}</finalName>
|
||||
<finalName>Provider-V${version}${build.version}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
@@ -50,39 +51,30 @@
|
||||
<target>${jdk.version}</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-ftp</artifactId>
|
||||
<version>2.10</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
</build>
|
||||
|
||||
<distributionManagement>
|
||||
<downloadUrl>https://maven.parabot.org/</downloadUrl>
|
||||
<repository>
|
||||
<uniqueVersion>false</uniqueVersion>
|
||||
<id>parabot-maven</id>
|
||||
<name>Custom Maven Repository</name>
|
||||
<url>ftp://maven.parabot.org</url>
|
||||
<layout>default</layout>
|
||||
</repository>
|
||||
<site>
|
||||
<id>parabot-maven</id>
|
||||
<name>Frontend Parabot Maven</name>
|
||||
<url>ftp://maven.parabot.org/docs/${artifactId}/</url>
|
||||
</site>
|
||||
</distributionManagement>
|
||||
|
||||
<reporting>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>2.5.3</version>
|
||||
<configuration>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||
</descriptorRefs>
|
||||
<outputDirectory>${project.build.directory}/final/</outputDirectory>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
</configuration>
|
||||
|
||||
<executions>
|
||||
<execution>
|
||||
<id>make-assembly</id>
|
||||
<!-- bind to the packaging phase -->
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</reporting>
|
||||
</build>
|
||||
</project>
|
||||
Reference in New Issue
Block a user