dart-sdk/tools/linux_dist_support/run_debian_build.sh
Alexander Thomas 36b505cf8c [infra] Clean up debian package builder
* Add a docker file to avoid rebuilding the same image on every run.
* Move all files involved into the linux_dist_support folder.
* Exclude more directories in the tarball.
* Delete version checker from test_matrix.
* Disable goma when running build.py.

Change-Id: Ic7b0a2359027d532c009cdf3187d873323170f30
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/195901
Reviewed-by: William Hesse <whesse@google.com>
2021-04-21 09:28:52 +00:00

15 lines
585 B
Bash
Executable file

#!/usr/bin/env bash
# Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
set -x
ninja=$(which ninja)
depot_tools=$(dirname $ninja)
image="debian-package:0.1"
dockerfile=tools/linux_dist_support/Debian.dockerfile
docker build --build-arg depot_tools=$depot_tools -t $image - < $dockerfile
checkout=$(pwd)
docker run -e BUILDBOT_BUILDERNAME -v $depot_tools:$depot_tools\
-v $checkout:$checkout -w $checkout -i --rm $image