Skip to content
Snippets Groups Projects
Commit ab2fa14e authored by samm2's avatar samm2
Browse files

circleci: use dist file instead of running autoconf, which is broken on the...

circleci: use dist file instead of running autoconf, which is broken on the recent OS with an old versions

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/branches/RELEASE_6_0_DRIVEDB@4531 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 30119ef3
No related branches found
No related tags found
No related merge requests found
...@@ -20,40 +20,24 @@ references: ...@@ -20,40 +20,24 @@ references:
sed -E "s|.*git-svn-id: http://svn.code.sf.net/p/smartmontools/code/branches/${CIRCLE_BRANCH#origin/}@([0-9]+).*|\1|" > sed -E "s|.*git-svn-id: http://svn.code.sf.net/p/smartmontools/code/branches/${CIRCLE_BRANCH#origin/}@([0-9]+).*|\1|" >
~/SVNREV && test "`cat ~/SVNREV`" -gt "0" && echo SVN revision: r`cat ~/SVNREV` ~/SVNREV && test "`cat ~/SVNREV`" -gt "0" && echo SVN revision: r`cat ~/SVNREV`
svn_checkout: &svn_checkout sf_getfiles: &sf_getfiles
run: run:
name: Checkout from the SF.net name: Downloading files from the SF.net
command: > command: >
rel=${CIRCLE_BRANCH#origin/} && rel=${rel%_DRIVEDB} && echo $rel > ~/SM_REL && ver=${CIRCLE_BRANCH#origin/RELEASE_} && ver=${ver%_DRIVEDB} && ver=${rel/_/.} &&
svn --config-option 'config:miscellany:use-commit-times=yes' checkout echo ${ver} > ~/SM_VER && cd ~/ &&
https://svn.code.sf.net/p/smartmontools/code/tags/${rel}/smartmontools wget https://downloads.sourceforge.net/project/smartmontools/smartmontools/${ver}/smartmontools-${ver}.tar.gz &&
~/smartmontools && tar -xvzf /smartmontools-${ver}.tar.gz &&
svn cat https://svn.code.sf.net/p/smartmontools/code/branches/${CIRCLE_BRANCH#origin/}/smartmontools/drivedb.h@`cat ~/SVNREV` > svn cat https://svn.code.sf.net/p/smartmontools/code/branches/${CIRCLE_BRANCH#origin/}/smartmontools/drivedb.h@`cat ~/SVNREV` >
~/smartmontools/drivedb.h ~/smartmontools-${ver}/drivedb.h
sm_distfile: &sm_distfile
run:
name: Creating src.tar.gz
command: |
cd ~/smartmontools
sed -n 's|^AC_INIT[^,]*, *\([0-9.]*\) *,.*$|\1|p' "configure.ac" > ~/SM_VER
SM_VER=`cat ~/SM_VER` && SVNREV=`cat ~/SVNREV`
./autogen.sh --force
mkdir build && cd build
../configure
make dist
mkdir /artefacts && mv smartmontools-${SM_VER}.tar.gz /artefacts/smartmontools-${SM_VER}-r${SVNREV}.src.tar.gz
sm_comple_linux: &sm_compile_linux sm_comple_linux: &sm_compile_linux
run: run:
name: Checking drivedb.h with a specific smartmontools version name: Checking drivedb.h with a specific smartmontools version
command: | command: |
SM_VER=`cat ~/SM_VER` && SVNREV=`cat ~/SVNREV` SM_VER=`cat ~/SM_VER` && SVNREV=`cat ~/SVNREV`
mkdir ~/build && cd ~/build
tar -xvzf /artefacts/smartmontools-${SM_VER}-r${SVNREV}.src.tar.gz
cd smartmontools-${SM_VER} && mkdir build && cd build cd smartmontools-${SM_VER} && mkdir build && cd build
../configure && make -j2 && make check ../configure && make -j2 && make check
rm -rf ~/build
jobs: jobs:
...@@ -63,8 +47,7 @@ jobs: ...@@ -63,8 +47,7 @@ jobs:
working_directory: ~/smartmontools working_directory: ~/smartmontools
steps: steps:
- *get_svn_commit - *get_svn_commit
- *svn_checkout - *sf_getfiles
- *sm_distfile
- *sm_compile_linux - *sm_compile_linux
workflows: workflows:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment