Skip to content

Commit

Permalink
Merge remote-tracking branch 'gitlab.toppoint/release-candidate'
Browse files Browse the repository at this point in the history
  • Loading branch information
rubo77 committed May 20, 2019
2 parents 56b1501 + eaba9f9 commit dfc7661
Show file tree
Hide file tree
Showing 17 changed files with 359 additions and 145 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
*~
download/index.html
/signing_key
*.log
/gluon
18 changes: 11 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ variables:
CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/build
GLUON_GIT: https://github.com/freifunk-gluon/gluon.git
GLUON_BRANCH: v2018.1.x
BROKEN: BROKEN=1

cache:
key: $CI_COMMIT_REF_SLUG-$GLUON_GIT-$GLUON_BRANCH
Expand Down Expand Up @@ -39,17 +40,20 @@ build:
- export FORCE_UNSAFE_CONFIGURE=1
# former clone step
- ./.gitlab-ci/update-git.sh | tee -a debug.log
- ./.gitlab-ci/build.sh -c update -b $CI_COMMIT_REF_NAME -n $CI_PIPELINE_ID -m "-j $(nproc --all)" | tee -a debug.log
- ./.gitlab-ci/build.sh -c update -b rc -a stable -n $CI_PIPELINE_ID -m "-j $(nproc --all) $BROKEN" | tee -a debug.log
# We should never need this, should we?
- ./.gitlab-ci/build.sh -c clean -b $CI_COMMIT_REF_NAME -n $CI_PIPELINE_ID -m "-j $(nproc --all)" | tee -a debug.log
# In the past this build step repeatedly broke
# - ./.gitlab-ci/build.sh -c download -b $CI_COMMIT_REF_NAME -n $CI_PIPELINE_ID -m "-j $(nproc --all) V=s" | tee -a debug.log
- ./.gitlab-ci/build.sh -c build -b $CI_COMMIT_REF_NAME -n $CI_PIPELINE_ID -m "-j $(nproc --all)" | tee -a debug.log
- ./.gitlab-ci/build.sh -c clean -b rc -a stable -n $CI_PIPELINE_ID -m "-j $(nproc --all)" | tee -a debug.log
# Apply patches
- ./.gitlab-ci/patch.sh patches gluon
# Build
- ./.gitlab-ci/build.sh -c build -b rc -a stable -n $CI_PIPELINE_ID -m "-j $(nproc --all) $BROKEN" | tee -a debug.log
# Revert patches
- ./.gitlab-ci/patch.sh -r patches gluon
# Bring gluon repo to cacheable state
- ./.gitlab-ci/build.sh -c clean -b $CI_COMMIT_REF_NAME -n $CI_PIPELINE_ID -m "-j $(nproc --all)" | tee -a debug.log
- ./.gitlab-ci/build.sh -c clean -b rc -a stable -n $CI_PIPELINE_ID -m "-j $(nproc --all) $BROKEN" | tee -a debug.log
# Sign
- echo $SIGNING_KEY > signing_key
- ./.gitlab-ci/build.sh -c sign -b $CI_COMMIT_REF_NAME -s $(pwd)/signing_key
- ./.gitlab-ci/build.sh -c sign -b rc -a stable -s $(pwd)/signing_key
artifacts:
untracked: false
paths:
Expand Down
21 changes: 10 additions & 11 deletions .gitlab-ci/build-container/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM debian:stretch

RUN apt-get update && apt-get install -y \
git \
subversion \
python \
build-essential \
gawk \
unzip \
libncurses5-dev \
zlib1g-dev \
git \
subversion \
python \
build-essential \
gawk \
unzip \
libncurses5-dev \
zlib1g-dev \
libssl1.0-dev \
wget \
curl \
wget \
curl \
openssh-client
RUN apt-get update && apt-get install -y \
cmake \
Expand All @@ -36,4 +36,3 @@ RUN apt-get update && apt-get install -y \
cd ~ && \
rm -rf ~/libuecc && \
rm -rf ~/ecdsautils

Loading

0 comments on commit dfc7661

Please sign in to comment.