CI 8
This commit is contained in:
parent
8b388abe31
commit
03e537d121
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
|
build
|
||||||
*.deb
|
*.deb
|
||||||
MyxCMake/MyxCMakeConfigVersion.cmake
|
MyxCMake/MyxCMakeConfigVersion.cmake
|
||||||
|
|
||||||
|
@ -6,9 +6,7 @@ include:
|
|||||||
smolensk15-nightly:
|
smolensk15-nightly:
|
||||||
script:
|
script:
|
||||||
- ./build_deb.sh
|
- ./build_deb.sh
|
||||||
- mkdir build
|
|
||||||
- ls -la
|
- ls -la
|
||||||
- ls -la ..
|
- ls -la build
|
||||||
- mv ../*.deb build
|
|
||||||
extends: .scheduled-smolensk15
|
extends: .scheduled-smolensk15
|
||||||
|
|
||||||
|
@ -3,16 +3,19 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
V=$(grep -i "project.*VERSION.*LANGUAGES" CMakeLists.txt | sed 's/.*VERSION \([0-9.]*\) .*/\1/')
|
V=$(grep -i "project.*VERSION.*LANGUAGES" CMakeLists.txt | sed 's/.*VERSION \([0-9.]*\) .*/\1/')
|
||||||
D=$(mktemp -d "/tmp/myx-cmake.XXXXXX")
|
D=build
|
||||||
|
|
||||||
mkdir -p "$D/myx-cmake-$V"
|
mkdir -p "$D/myx-cmake-$V"
|
||||||
cp -ap CMakeLists.txt MyxCMake "$D/myx-cmake-$V"
|
cp -ap CMakeLists.txt MyxCMake "$D/myx-cmake-$V"
|
||||||
pushd "$D"
|
pushd "$D"
|
||||||
tar Jcf "myx-cmake_${V}.orig.tar.xz" "myx-cmake-$V"
|
tar Jcf "myx-cmake_${V}.orig.tar.xz" "myx-cmake-$V"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
cp -ap debian "$D/myx-cmake-$V"
|
cp -ap debian "$D/myx-cmake-$V"
|
||||||
pushd "$D/myx-cmake-$V"
|
pushd "$D/myx-cmake-$V"
|
||||||
dch -D unstable -v "${V}-1" -m "New version."
|
dch -D unstable -v "${V}-1" -m "New version."
|
||||||
dpkg-buildpackage -us -uc
|
dpkg-buildpackage -us -uc
|
||||||
popd
|
popd
|
||||||
cp -f ${D}/myx*deb .
|
|
||||||
|
rm -rf "$D/myx-cmake-$V"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user