Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
google
GitHub Repository: google/crosvm
Path: blob/main/infra/cipd/package_cargo_nextest.sh
5394 views
1
#!/usr/bin/env bash
2
# Copyright 2022 The ChromiumOS Authors
3
# Use of this source code is governed by a BSD-style license that can be
4
# found in the LICENSE file.
5
6
set -ex
7
8
BUILD_DIR=$(mktemp -d)
9
cd "$BUILD_DIR" || exit 1
10
11
CIPD_ARGS=(
12
-pkg-var "description:cargo-nextest modern test runner for cargo"
13
-install-mode copy
14
-ref latest
15
)
16
17
18
cd $(mktemp -d)
19
curl -L "https://get.nexte.st/latest/windows" | jar xv
20
cipd create -in "." -name "crosvm/cargo-nextest/windows-amd64" "${CIPD_ARGS[@]}"
21
22
cd $(mktemp -d)
23
curl -L "https://get.nexte.st/latest/linux" | tar zxv
24
cipd create -in "." -name "crosvm/cargo-nextest/linux-amd64" "${CIPD_ARGS[@]}"
25
26
27