Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

Travis for propagation #487

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 1 addition & 38 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1 @@
language: java

jdk:
- openjdk11

cache:
directories:
- ${HOME}/.m2/repository

services:
- docker

notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/4eabeeadee998a77068b
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always

branches:
only:
- master

before_script:
- echo MAVEN_OPTS=-Xmx1536m > ~/.mavenrc

# Enable integration tests
script:
- mvn verify -B -DskipITs=false

# Send coverage data
after_success:
bash <(curl -s https://codecov.io/bash)

after_failure:
- cat **/target/surefire-reports/*.xml | grep -B 1 -A 10 "<error"
- cat **/target/failsafe-reports/*.xml | grep -B 1 -A 10 "<error"
import: Activiti/activiti-scripts:.travis.docker.yml@master
4 changes: 4 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DOCKER_IMAGE_NAME=activiti-cloud-query
DOCKER_IMAGE_TAG=${DOCKER_IMAGE_TAG:-latest}
DOCKER_IMAGE_REPOSITORY=${DOCKER_IMAGE_REPOSITORY:-activiti/${DOCKER_IMAGE_NAME}}
MAKEFILE_PATH=charts/activiti-cloud-query/
9 changes: 2 additions & 7 deletions charts/activiti-cloud-query/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,5 @@ updatebot/push-version:
@echo Resolving push versions for artifacts........
$(eval ACTIVITI_CLOUD_QUERY_VERSION=$(shell mvn help:evaluate -Dexpression=activiti-cloud.version -q -DforceStdout -f ../../pom.xml))
$(eval MAVEN_VERSIONS=org.activiti.cloud.examples:activiti-cloud-query $(RELEASE_VERSION) org.activiti.cloud.query:activiti-cloud-query-dependencies $(ACTIVITI_CLOUD_QUERY_VERSION))

@echo Doing updatebot push-version.....
for number in 1 2; do \
updatebot -d ../../ push-version --kind maven $(MAVEN_VERSIONS); \
rm -rf ../../.updatebot-repos/; \
sleep $$[ ( $$RANDOM % 10 ) + 1 ]s; \
done
updatebot -d ../../ push-version --kind maven $(MAVEN_VERSIONS);

42 changes: 42 additions & 0 deletions settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>alfresco</id>
<username>${env.MAVEN_USERNAME}</username>
<password>${env.MAVEN_PASSWORD}</password>
</server>
<server>
<id>central</id>
<username>${env.MAVEN_USERNAME}</username>
<password>${env.MAVEN_PASSWORD}</password>
</server>
</servers>

<profiles>
<profile>
<id>central</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<altDeploymentRepository>central::default::https://artifacts.alfresco.com/nexus/content/repositories/activiti-snapshots/</altDeploymentRepository>
<altReleaseDeploymentRepository>central::default::https://oss.sonatype.org/service/local/staging/deploy/maven2/</altReleaseDeploymentRepository>
<altSnapshotDeploymentRepository>central::default::https://artifacts.alfresco.com/nexus/content/repositories/activiti-snapshots/</altSnapshotDeploymentRepository>
</properties>
</profile>
<profile>
<id>alfresco</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<altDeploymentRepository>alfresco::default::https://artifacts.alfresco.com/nexus/content/repositories/activiti-snapshots/</altDeploymentRepository>
<altReleaseDeploymentRepository>alfresco::default::https://artifacts.alfresco.com/nexus/content/repositories/activiti-releases/</altReleaseDeploymentRepository>
<altSnapshotDeploymentRepository>alfresco::default::https://artifacts.alfresco.com/nexus/content/repositories/activiti-snapshots/</altSnapshotDeploymentRepository>
</properties>
</profile>
</profiles>

</settings>