1. 07 Mar, 2021 1 commit
  2. 27 Feb, 2021 6 commits
  3. 26 Feb, 2021 1 commit
  4. 22 Feb, 2021 1 commit
  5. 21 Feb, 2021 1 commit
    • Kevin Daudt's avatar
      merge: limit the size of uploaded packages · 5686ce18
      Kevin Daudt authored
      The maximum size of artifacts that can be uploaded to gitlab is limited
      to reduce the storage requirements. When packags are built successfully,
      but the combined package size is too large, the CI job will still fail,
      because it failed to upload the artifacts.
      
      To prevent this from happening, only offer the packages for upload as
      artifacts when the combined size is lower than a set limit. This will
      allow the CI job to succeed at the cost of not being able to download
      the built packages as artifacts.
      
      This also introduces a test suite to test the the build script.
      5686ce18
  6. 20 Feb, 2021 3 commits
    • Kevin Daudt's avatar
      build: copy packages after build · c11f3f45
      Kevin Daudt authored
      To allow them to be uploaded as artifacts, they need to be available in
      the project directory. The files are now copied in the CI script, but
      the issue is that when the files are too large, the CI job fails.
      
      This is solved by copying these files only when they are smaller than
      the limit.
      c11f3f45
    • Kevin Daudt's avatar
      ci: add test suite to verify functionality · aa67ec05
      Kevin Daudt authored
      This adds a basic test based on bats to verify that the build script
      works. This can be expanded with more tests to cover all functionality
      and edge cases.
      aa67ec05
    • Kevin Daudt's avatar
      build: allow override of REPODEST · 7a65c4ee
      Kevin Daudt authored
      This makes it easier to test the script by allowing to specify a
      REPODEST in a temporary location.
      
      This variable is however not used consistently, so adjust the places
      that refer directly to `$HOME/packages` to use `$REPODEST`.
      7a65c4ee
  7. 10 Feb, 2020 2 commits
  8. 09 Feb, 2020 2 commits
    • Kevin Daudt's avatar
      build.sh: limit log output when debugging · 76b0b88b
      Kevin Daudt authored
      76b0b88b
    • Kevin Daudt's avatar
      build.sh: fix overzealous shellcheck warnings · 2c81ce0b
      Kevin Daudt authored
      Shellcheck wants you to quote all variables to prevent accidental
      wordsplitting. But the arguments to `ap builddirs` should be splitted
      because each package should be a separate argument.
      
      23ae6625 (build.sh: fix shellcheck issues, 2020-02-03) did quote
      `$aports`, breaking CI when trying to build multiple packages.
      
      Undo that change and add comments to show that it should remain unquoted.
      2c81ce0b
  9. 04 Feb, 2020 2 commits
  10. 03 Feb, 2020 6 commits
  11. 29 Dec, 2019 1 commit
  12. 11 Dec, 2019 1 commit
    • Kevin Daudt's avatar
      image: refactor to use build-base · dd46ac61
      Kevin Daudt authored
      Setting up a base build setup has been moved to a dedicated image called
      alpinelinux/build-base. This allows that functionality be reused and
      makes setting up this image simpler.
      dd46ac61
  13. 05 Oct, 2019 1 commit
    • Kevin Daudt's avatar
      build.sh: define CI_DEBUG_BUILD · 39d47a84
      Kevin Daudt authored
      Because `set -u` is configured, the script will give an error when
      trying to use a variable that is not defined.
      
      Because the purpose this is meant to be an environment variable, we
      cannot just set it empty, because it would overwrite the value from the
      environment.
      
      Define `CI_DEBUB_BUILD` as empty when it's not defined.
      39d47a84
  14. 04 Oct, 2019 1 commit
  15. 28 Sep, 2019 2 commits
    • Kevin Daudt's avatar
      build.sh: show commit graph · 669d6223
      Kevin Daudt authored
      To make it easer to find out what's going on, print the commit graph of
      the repo.
      669d6223
    • Kevin Daudt's avatar
      build.sh: use local upstream repos · c5664f35
      Kevin Daudt authored
      Merge requests can consist of packages from different repositories. Some
      packages will depend on the packages that are just being built in a
      higher repository.
      
      The script currently only adds repos from the mirror, which will cause
      build issues.
      
      Add the local higher repositories to the repositories list.
      c5664f35
  16. 22 Sep, 2019 3 commits
    • Kevin Daudt's avatar
      build: use asymmetric diff to calculate changed aports · cf92e5f9
      Kevin Daudt authored
      A plain git diff will return changes both from the branch being merged,
      as the target branch. Because we are only interested in changes from the
      current branch, we need to do an asymmetric diff.
      cf92e5f9
    • Kevin Daudt's avatar
      build: show the list of changed aports · be003121
      Kevin Daudt authored
      To make it clear in the build logs what is being built, provide the list
      of changed aports that the build script is trying to build.
      be003121
    • Kevin Daudt's avatar
      build: fetch master from the upstream repo · 5da34890
      Kevin Daudt authored
      The CI job for merge requests is run in the forked project, meaning that
      the target branch may be behind. This would result in more commits being
      checked than intended.
      
      Fetch the target branch from the upstream repository instead so that we
      know the target branch is up-to-date and we can reliably get a list of
      changed commits just for this merge request.
      5da34890
  17. 28 Aug, 2019 1 commit
    • Kevin Daudt's avatar
      build.sh: force overwrite basebranch · 2b1aef6e
      Kevin Daudt authored
      The basebranch might already exist. When trying to update the basebranch
      when it's not fast-forwardable, git will throw an error.
      
      Add a '+' to the fetch spec to tell git that it's allowed to force
      overwrite the current ref.
      2b1aef6e
  18. 25 Aug, 2019 2 commits
  19. 22 Aug, 2019 2 commits
  20. 14 May, 2019 1 commit