diff options
author | Christoph Junghans <junghans@votca.org> | 2016-09-27 17:27:44 -0600 |
---|---|---|
committer | Christoph Junghans <junghans@votca.org> | 2016-09-28 15:21:24 -0600 |
commit | 93601f3f5bf2b84bf2a73a35edaa821b0548c3b2 (patch) | |
tree | 20d78dc4207f350b995b7a59af81c6e8afeabfbe | |
parent | a0c3220d9e1795c9162f711b69805d549cb0a72f (diff) | |
download | fedora-review-ci.tar.gz fedora-review-ci.tar.xz fedora-review-ci.zip |
exodusii: testingci
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | .travis.yml | 46 | ||||
-rw-r--r-- | exodusii/exodusii-6.02-4.fc24.src.rpm | bin | 13945401 -> 0 bytes | |||
-rw-r--r-- | exodusii/exodusii.spec | 4 |
4 files changed, 39 insertions, 13 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..afbe874 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*/*src.rpm +*/review-*/ diff --git a/.travis.yml b/.travis.yml index 44ce093..437765c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,16 +14,40 @@ script: - if [[ ! -d ${PKG} ]]; then echo "Directory ${PKG} not found"; exit 1; fi - if [[ ! -f ${PKG}/${PKG}.spec ]]; then echo "No spec file (${PKG}.spec found in directory ${PKG}"; exit 1; fi - | - { - echo "#!/bin/bash -xe" - echo "dnf -y install fedora-review sudo" - echo "cd /travis/${PKG}" - echo "rpmbuild -D'_sourcedir /travis/${PKG}' -D'_srcrpmdir /travis/${PKG}' -bs ${PKG}.spec" - echo "useradd -r -m -g mock review" - echo "chown -R review:mock /travis/${PKG}" - echo "ls /etc/mock" - echo "sudo -u review fedora-review --mock-config ${MOCK_CONFIG} -v -n ${PKG} || { cat /home/review/.cache/fedora-review.log; exit 1; }" + { + H="/travis/${PKG}" + echo "#!/bin/bash -e" + echo "dnf -y install fedora-review" + echo "rpmbuild -D'_sourcedir ${H}' -D'_srcrpmdir ${H}' -bs ${H}/${PKG}.spec" + echo "useradd -d ${H} -g mock review" + echo "chown -R review:mock ${H}" + echo "su - -c 'fedora-review -v --mock-config ${MOCK_CONFIG} -n ${PKG}' review" + echo "cat ${H}/review-${PKG}/review.txt" } > review.sh - chmod +x review.sh - - cat review.sh - - docker run --privileged=true -v "${PWD}:/travis:rw" -it fedora /travis/review.sh + - docker run --privileged -v "${PWD}:/travis:rw" -it fedora /travis/review.sh + +after_success: + - git config --global user.name "Automatic Deployment (Travis CI)" + - git config --global user.email "builds@travis-ci.org" + - git fetch origin gh-pages && git checkout -b gh-pages FETCH_HEAD + - cd ${PKG} + - rm -f ${PKG}*.src.rpm + - git checkout ${TRAVIS_COMMIT} -- ./${PKG}.spec + - cp review-${PKG}/review.txt . + - cp review-${PKG}/results/${PKG}*.src.rpm . + - git add ${PKG}.spec ${PKG}*.src.rpm review.txt + - if [[ ${encrypted_404fa93e7e35_key} && ${encrypted_404fa93e7e35_iv} && ${TRAVIS_BRANCH} == master ]]; then + git commit -m "Review output"; + openssl aes-256-cbc -K $encrypted_404fa93e7e35_key -iv $encrypted_404fa93e7e35_iv -in deploy.enc -out ~/.ssh/id_rsa -d; + chmod 600 ~/.ssh/id_rsa; + git push git@github.com:${TRAVIS_REPO_SLUG} gh-pages:gh-pages; + else + git status; + echo "###################################################"; + echo "Spec URL http://${TRAVIS_REPO_SLUG%/*}.github.io/${TRAVIS_REPO_SLUG#/*}/${PKG}/${PKG}.spec"; + echo "SRPM URL http://${TRAVIS_REPO_SLUG%/*}.github.io/${TRAVIS_REPO_SLUG#/*}/${PKG}/$(echo ${PKG}*.src.rpm)"; + echo "Review.txt http://${TRAVIS_REPO_SLUG%/*}.github.io/${TRAVIS_REPO_SLUG#/*}/${PKG}/review.txt"; + echo "Build log https://travis-ci.org/${TRAVIS_REPO_SLUG}/builds/${TRAVIS_BUILD_ID}"; + echo "###################################################"; + fi diff --git a/exodusii/exodusii-6.02-4.fc24.src.rpm b/exodusii/exodusii-6.02-4.fc24.src.rpm Binary files differdeleted file mode 100644 index 60b0cfa..0000000 --- a/exodusii/exodusii-6.02-4.fc24.src.rpm +++ /dev/null diff --git a/exodusii/exodusii.spec b/exodusii/exodusii.spec index b51d200..884ede9 100644 --- a/exodusii/exodusii.spec +++ b/exodusii/exodusii.spec @@ -6,9 +6,9 @@ License: BSD Url: http://sourceforge.net/projects/exodusii/ #last version of the orinal source, got merge into https://github.com/gsjaardema/seacas # but has different API -Source0: http://distfiles.gentoo.org/distfiles/exodus-%{version}.tar.gz +Source0: http://distfiles.gentoo.org/distfiles/exodus-%{version}.tar.gz Source1: http://prod.sandia.gov/techlib/access-control.cgi/1992/922137.pdf -Source2: http://fossies.org/linux/Trilinos-trilinos-release/packages/seacas/doc/exodusII.pdf +Source2: http://gsjaardema.github.io/seacas/exodusII.pdf Patch1: sovers.diff Patch2: exodus-6.02-testresults.patch |