Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:almighty/almighty-core into iss-187
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavgore09 committed Sep 19, 2016
2 parents 39ebd7b + 5c04a5b commit 7703f7f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
16 changes: 15 additions & 1 deletion cico_build_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,21 @@ set -x
# Exit on error
set -e

# Source environment variables of the jenkins slave
# that might interest this worker.
if [ -e "jenkins-env" ]; then
cat jenkins-env \
| grep -E "(JENKINS_URL|GIT_BRANCH|GIT_COMMIT|BUILD_NUMBER|ghprbSourceBranch|ghprbActualCommit|BUILD_URL|ghprbPullId)" \
| sed 's/^/export /g' \
> ~/.jenkins-env
source ~/.jenkins-env
fi

# We need to disable selinux for now, XXX
/usr/sbin/setenforce 0

# Get all the deps in
yum -y install docker make git
yum -y install docker make git curl
sed -i '/OPTIONS=.*/c\OPTIONS="--selinux-enabled --log-driver=journald --insecure-registry registry.ci.centos.org:5000"' /etc/sysconfig/docker
service docker start

Expand All @@ -33,6 +43,10 @@ echo 'CICO: app tests OK'
# Output coverage
make docker-coverage-all

# Upload coverage to codecov.io
cp tmp/coverage.mode* coverage.txt
bash <(curl -s https://codecov.io/bash) -X search -f coverage.txt -t ad12dad7-ebdc-47bc-a016-8c05fa7356bc

# Let's deploy
make docker-image-deploy
docker tag almighty-core-deploy registry.ci.centos.org:5000/almighty/almighty-core:latest
Expand Down
5 changes: 3 additions & 2 deletions cico_run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ fi
yum -y install \
docker \
make \
git
git \
curl
service docker start

# Let's test
Expand All @@ -47,4 +48,4 @@ make docker-coverage-all

# Upload coverage to codecov.io
cp tmp/coverage.mode* coverage.txt
bash <(curl -s https://codecov.io/bash) -X search -f coverage.txt
bash <(curl -s https://codecov.io/bash) -X search -f coverage.txt -t ad12dad7-ebdc-47bc-a016-8c05fa7356bc

0 comments on commit 7703f7f

Please sign in to comment.