-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #202 from ARGOeu/devel
Prepare release 1.3
- Loading branch information
Showing
482 changed files
with
58,874 additions
and
1,492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,8 @@ __pycache__ | |
.DS_STORE | ||
conf.cfg | ||
.pytest_cache | ||
|
||
# Java related | ||
.classpath | ||
.project | ||
.settings/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
# Set-up a python centric enviroment in order to easily choose py version:2.7 | ||
# bonus: Java 7 and mvn also included | ||
language: python | ||
# Target py version 2.7 | ||
# Target py version 3.6 | ||
python: | ||
- "2.7" | ||
- "3.6" | ||
|
||
script: | ||
- pip install -r ./bin/requirements.txt | ||
- pytest | ||
- cd flink_jobs/ams_ingest_metric/ && travis_wait mvn test | ||
- cd ../batch_ar && travis_wait mvn test | ||
- cd ../batch_status && travis_wait mvn test | ||
- cd ../stream_status && travis_wait mvn test | ||
- cd ../ams_ingest_sync && travis_wait mvn test | ||
- cd flink_jobs/ams_ingest_metric/ && travis_wait mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn test | ||
- cd ../batch_ar && travis_wait mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn test | ||
- cd ../batch_status && travis_wait mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn test | ||
- cd ../stream_status && travis_wait mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn test | ||
- cd ../ams_ingest_sync && travis_wait mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn test | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
|
||
pipeline { | ||
agent none | ||
options { | ||
checkoutToSubdirectory('argo-streaming') | ||
newContainerPerStage() | ||
} | ||
environment { | ||
PROJECT_DIR='argo-streaming' | ||
REQUIREMENTS="${PROJECT_DIR}/bin/requirements.txt" | ||
} | ||
stages { | ||
stage('Configuration scripts Tests') { | ||
agent { | ||
docker { | ||
image 'argo.registry:5000/epel-7-py36' | ||
args '-u jenkins:jenkins' | ||
} | ||
} | ||
steps { | ||
echo 'Testing compute engine auto configuration scripts' | ||
sh """ | ||
pip3 install -r ${REQUIREMENTS} --user | ||
pytest --junit-xml=${PROJECT_DIR}/junit.xml --cov=${PROJECT_DIR} --cov-report=xml | ||
""" | ||
junit '**/junit.xml' | ||
cobertura coberturaReportFile: '**/coverage.xml' | ||
} | ||
post { | ||
always { | ||
cleanWs() | ||
} | ||
} | ||
} | ||
stage('Flink Jobs Testing & Packaging') { | ||
agent { | ||
docker { | ||
image 'argo.registry:5000/epel-7-java18' | ||
args '-u jenkins:jenkins' | ||
} | ||
} | ||
steps { | ||
echo 'Packaging & Testing Flink Jobs' | ||
sh """ | ||
mvn clean package cobertura:cobertura -Dcobertura.report.format=xml -f ${PROJECT_DIR}/flink_jobs/stream_status/pom.xml | ||
mvn clean package cobertura:cobertura -Dcobertura.report.format=xml -f ${PROJECT_DIR}/flink_jobs/batch_ar/pom.xml | ||
mvn clean package cobertura:cobertura -Dcobertura.report.format=xml -f ${PROJECT_DIR}/flink_jobs/batch_status/pom.xml | ||
mvn clean package cobertura:cobertura -Dcobertura.report.format=xml -f ${PROJECT_DIR}/flink_jobs/ams_ingest_metric/pom.xml | ||
mvn clean package cobertura:cobertura -Dcobertura.report.format=xml -f ${PROJECT_DIR}/flink_jobs/ams_ingest_sync/pom.xml | ||
mvn clean package cobertura:cobertura -Dcobertura.report.format=xml -f ${PROJECT_DIR}/flink_jobs/status_trends/pom.xml | ||
""" | ||
junit '**/target/surefire-reports/*.xml' | ||
cobertura coberturaReportFile: '**/target/site/cobertura/coverage.xml' | ||
archiveArtifacts artifacts: '**/target/*.jar' | ||
} | ||
post { | ||
always { | ||
cleanWs() | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
success { | ||
script{ | ||
if ( env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'devel' ) { | ||
slackSend( message: ":rocket: New version for <$BUILD_URL|$PROJECT_DIR>:$BRANCH_NAME Job: $JOB_NAME !") | ||
} | ||
} | ||
} | ||
failure { | ||
script{ | ||
if ( env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'devel' ) { | ||
slackSend( message: ":rain_cloud: Build Failed for <$BUILD_URL|$PROJECT_DIR>:$BRANCH_NAME Job: $JOB_NAME") | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.