Commit d9687337 authored by Leo Pound Singer's avatar Leo Pound Singer
Browse files

WIP: build Debian packaging in CI build

parent bcf5a5ef
Pipeline #9396 failed with stages
in 4 minutes and 35 seconds
......@@ -32,298 +32,82 @@ cache:
paths:
- ccache
level0:lal:
image: ligo/lalsuite-dev:jessie
.package: &package-template
image: ligo/lalsuite-dev:stretch
stage: level0
script:
- cd lal
- ./00boot
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
before_script:
- apt-get -y install devscripts
- |
if ls *.deb 1> /dev/null 2>&1
then
dpkg -i *.deb
apt-get -yf install
fi
script:
- cd ${CI_JOB_NAME}
- ./00boot
- ./configure --enable-swig
- make dist
- tar xf lal-*.tar.xz
- cd lal-*
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make -j4 V=1
- make -j4 V=1 VERBOSE=1 check
- make -j4 install
- make -j4 install-html
- ln -s ${CI_JOB_NAME}-*.tar.xz $(echo ${CI_JOB_NAME}-*.tar.xz | sed 's/\(.*\)-\(.*\).\(tar.*\)/\1_\2.orig.\3/')
- tar xf ${CI_JOB_NAME}-*.tar.xz
- cd $(find . -type d -maxdepth 1 -name ${CI_JOB_NAME}-\*)
- yes | mk-build-deps -ir
- dpkg-buildpackage -us -uc
artifacts:
expire_in: 3h
paths:
- opt/lalsuite
- '*.tar.xz'
- '*.deb'
only:
- pushes
level1:lalframe:
image: ligo/lalsuite-dev:jessie
lal:
<<: *package-template
stage: level0
lalframe:
<<: *package-template
stage: level1
script:
- cd lalframe
- ./00boot
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make dist
- tar xf lalframe-*.tar.xz
- cd lalframe-*
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make -j4 V=1
- make -j4 V=1 VERBOSE=1 check
- make -j4 install
- make -j4 install-html
artifacts:
expire_in: 3h
paths:
- opt/lalsuite
dependencies:
- level0:lal
only:
- pushes
level1:lalmetaio:
image: ligo/lalsuite-dev:jessie
lalmetaio:
<<: *package-template
stage: level1
script:
- cd lalmetaio
- ./00boot
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make dist
- tar xf lalmetaio-*.tar.xz
- cd lalmetaio-*
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make -j4 V=1
- make -j4 V=1 VERBOSE=1 check
- make -j4 install
- make -j4 install-html
artifacts:
expire_in: 3h
paths:
- opt/lalsuite
dependencies:
- level0:lal
only:
- pushes
level1:lalsimulation:
image: ligo/lalsuite-dev:jessie
lalsimulation:
<<: *package-template
stage: level1
script:
- cd lalsimulation
- ./00boot
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make dist
- tar xf lalsimulation-*.tar.xz
- cd lalsimulation-*
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make -j4 V=1
- make -j4 V=1 VERBOSE=1 check
- make -j4 install
- make -j4 install-html
artifacts:
expire_in: 3h
paths:
- opt/lalsuite
dependencies:
- level0:lal
only:
- pushes
level1:lalxml:
image: ligo/lalsuite-dev:jessie
lalxml:
<<: *package-template
stage: level1
script:
- cd lalxml
- ./00boot
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make dist
- tar xf lalxml-*.tar.xz
- cd lalxml-*
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make -j4 V=1
- make -j4 V=1 VERBOSE=1 check
- make -j4 install
- make -j4 install-html
artifacts:
expire_in: 3h
paths:
- opt/lalsuite
dependencies:
- level0:lal
only:
- pushes
level2:lalburst:
image: ligo/lalsuite-dev:jessie
lalburst:
<<: *package-template
stage: level2
script:
- cd lalburst
- ./00boot
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make dist
- tar xf lalburst-*.tar.xz
- cd lalburst-*
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make -j4 V=1
- make -j4 V=1 VERBOSE=1 check
- make -j4 install
- make -j4 install-html
artifacts:
expire_in: 3h
paths:
- opt/lalsuite
dependencies:
- level1:lalmetaio
- level1:lalsimulation
only:
- pushes
level2:lalinspiral:
image: ligo/lalsuite-dev:jessie
lalinspiral:
<<: *package-template
stage: level2
script:
- cd lalinspiral
- ./00boot
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make dist
- tar xf lalinspiral-*.tar.xz
- cd lalinspiral-*
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make -j4 V=1
- make -j4 V=1 VERBOSE=1 check
- make -j4 install
- make -j4 install-html
artifacts:
expire_in: 3h
paths:
- opt/lalsuite
dependencies:
- level1:lalframe
- level1:lalmetaio
- level1:lalsimulation
only:
- pushes
level2:lalpulsar:
image: ligo/lalsuite-dev:jessie
lalpulsar:
stage: level2
script:
- cd lalpulsar
- ./00boot
- ./configure --enable-cfitsio --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make dist
- tar xf lalpulsar-*.tar.xz
- cd lalpulsar-*
- ./configure --enable-cfitsio --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make -j4 V=1
- make -j4 V=1 VERBOSE=1 check
- make -j4 install
- make -j4 install-html
artifacts:
expire_in: 3h
paths:
- opt/lalsuite
dependencies:
- level1:lalxml
only:
- pushes
<<: *package-template
level2:lalstochastic:
image: ligo/lalsuite-dev:jessie
lalstochastic:
<<: *package-template
stage: level2
script:
- cd lalstochastic
- ./00boot
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make dist
- tar xf lalstochastic-*.tar.xz
- cd lalstochastic-*
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make -j4 V=1
- make -j4 V=1 VERBOSE=1 check
- make -j4 install
- make -j4 install-html
artifacts:
expire_in: 3h
paths:
- opt/lalsuite
dependencies:
- level1:lalmetaio
only:
- pushes
level3:laldetchar:
image: ligo/lalsuite-dev:jessie
laldetchar:
<<: *package-template
stage: level3
script:
- cd laldetchar
- ./00boot
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make dist
- tar xf laldetchar-*.tar.xz
- cd laldetchar-*
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make -j4 V=1
- make -j4 V=1 VERBOSE=1 check
- make -j4 install
- make -j4 install-html
artifacts:
expire_in: 3h
paths:
- opt/lalsuite
dependencies:
- level2:lalburst
only:
- pushes
level3:lalinference:
image: ligo/lalsuite-dev:jessie
lalinference:
<<: *package-template
stage: level3
script:
- cd lalinference
- ./00boot
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make dist
- tar xf lalinference-*.tar.xz
- cd lalinference-*
- ./configure --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make -j4 V=1
- make -j4 V=1 VERBOSE=1 check
- make -j4 install
- make -j4 install-html
artifacts:
expire_in: 3h
paths:
- opt/lalsuite
dependencies:
- level2:lalburst
- level2:lalinspiral
- level2:lalpulsar
only:
- pushes
level4:lalapps:
image: ligo/lalsuite-dev:jessie
lalapps:
<<: *package-template
stage: level4
script:
- cd lalapps
- ./00boot
- ./configure --enable-cfitsio --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make dist
- tar xf lalapps-*.tar.xz
- cd lalapps-*
- ./configure --enable-cfitsio --enable-swig --enable-doxygen --prefix=${LAL_DIR}
- make -j4 V=1
- make -j4 V=1 VERBOSE=1 check
- make -j4 install
- make -j4 install-html
artifacts:
expire_in: 3h
paths:
- opt/lalsuite
dependencies:
- level2:lalstochastic
- level3:laldetchar
- level3:lalinference
only:
- pushes
nightly:top-level:el7:
image: ligo/lalsuite-dev:el7
......@@ -451,7 +235,7 @@ dockerize:
- docker build --pull -t $COMMIT -t $BRANCH .
- docker push $COMMIT
dependencies:
- level4:lalapps
- lalapps
only:
- pushes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment