Skip to content

Commit

Permalink
Merge pull request #75 from danifernandezcalv/v4.0
Browse files Browse the repository at this point in the history
Added v4.0 tags
  • Loading branch information
antonroman authored Jul 31, 2018
2 parents 15c0a26 + 4b1425a commit a93924b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ pipeline {
stage('Container Build') {
steps {
echo 'Building..'
sh 'docker build --no-cache -f ./Dockerfile -t registry.sonata-nfv.eu:5000/tng-sdk-validation .'
sh 'docker build --no-cache -f ./Dockerfile -t registry.sonata-nfv.eu:5000/tng-sdk-validation:v4.0 .'
}
}
stage('Unit Tests') {
steps {
echo 'Unit Testing..'
sh "docker network create --driver bridge redis_network"
sh "docker run -d --name redis_docker -p 6379:6379 --network redis_network redis"
sh "docker run --network redis_network -e VAPI_REDIS_HOST='redis_docker' -i --rm registry.sonata-nfv.eu:5000/tng-sdk-validation pytest -v"
sh "docker run --network redis_network -e VAPI_REDIS_HOST='redis_docker' -i --rm registry.sonata-nfv.eu:5000/tng-sdk-validation:v4.0 pytest -v"
sh "docker stop redis_docker"
sh "docker rm redis_docker"
sh "docker network rm redis_network"
Expand Down Expand Up @@ -46,4 +46,3 @@ pipeline {
}
}
}

4 changes: 2 additions & 2 deletions pipeline/checkstyle/check.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
mkdir -p reports
echo "Checking style..."
docker run -i --rm registry.sonata-nfv.eu:5000/tng-sdk-validation pycodestyle --exclude .eggs . > reports/checkstyle-pep8.txt
docker run -i --rm registry.sonata-nfv.eu:5000/tng-sdk-validation:v4.0 pycodestyle --exclude .eggs . > reports/checkstyle-pep8.txt
echo "Checkstyle result:"
cat reports/checkstyle-pep8.txt
echo "Done"
echo "Done"

0 comments on commit a93924b

Please sign in to comment.