Merging upstream version 2.15.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
0c58496b9d
commit
bb75b7dc3e
38 changed files with 396 additions and 59 deletions
|
@ -2,9 +2,9 @@
|
|||
import sys
|
||||
|
||||
LANGUAGES = [
|
||||
'conda', 'coursier', 'docker', 'docker_image', 'dotnet', 'fail', 'golang',
|
||||
'node', 'perl', 'pygrep', 'python', 'r', 'ruby', 'rust', 'script',
|
||||
'swift', 'system',
|
||||
'conda', 'coursier', 'dart', 'docker', 'docker_image', 'dotnet', 'fail',
|
||||
'golang', 'node', 'perl', 'pygrep', 'python', 'r', 'ruby', 'rust',
|
||||
'script', 'swift', 'system',
|
||||
]
|
||||
FIELDS = [
|
||||
'ENVIRONMENT_DIR', 'get_default_version', 'healthy', 'install_environment',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
# This is a script used in CI to install coursier
|
||||
set -euxo pipefail
|
||||
set -euo pipefail
|
||||
|
||||
COURSIER_URL="https://github.com/coursier/coursier/releases/download/v2.0.0/cs-x86_64-pc-linux"
|
||||
COURSIER_HASH="e2e838b75bc71b16bcb77ce951ad65660c89bda7957c79a0628ec7146d35122f"
|
||||
|
@ -11,3 +11,5 @@ rm -f "$ARTIFACT"
|
|||
curl --location --silent --output "$ARTIFACT" "$COURSIER_URL"
|
||||
echo "$COURSIER_HASH $ARTIFACT" | sha256sum --check
|
||||
chmod ugo+x /tmp/coursier/cs
|
||||
|
||||
echo '##vso[task.prependpath]/tmp/coursier'
|
||||
|
|
17
testing/get-dart.sh
Executable file
17
testing/get-dart.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
VERSION=2.13.4
|
||||
|
||||
if [ "$OSTYPE" = msys ]; then
|
||||
URL="https://storage.googleapis.com/dart-archive/channels/stable/release/${VERSION}/sdk/dartsdk-windows-x64-release.zip"
|
||||
echo "##vso[task.prependpath]$(cygpath -w /tmp/dart-sdk/bin)"
|
||||
else
|
||||
URL="https://storage.googleapis.com/dart-archive/channels/stable/release/${VERSION}/sdk/dartsdk-linux-x64-release.zip"
|
||||
echo '##vso[task.prependpath]/tmp/dart-sdk/bin'
|
||||
fi
|
||||
|
||||
curl --silent --location --output /tmp/dart.zip "$URL"
|
||||
|
||||
unzip -q -d /tmp /tmp/dart.zip
|
||||
rm /tmp/dart.zip
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
# This is a script used in CI to install swift
|
||||
set -euxo pipefail
|
||||
set -euo pipefail
|
||||
|
||||
. /etc/lsb-release
|
||||
if [ "$DISTRIB_CODENAME" = "bionic" ]; then
|
||||
|
@ -25,3 +25,5 @@ fi
|
|||
|
||||
mkdir -p /tmp/swift
|
||||
tar -xf "$TGZ" --strip 1 --directory /tmp/swift
|
||||
|
||||
echo '##vso[task.prependpath]/tmp/swift/usr/bin'
|
||||
|
|
4
testing/resources/dart_repo/.pre-commit-hooks.yaml
Normal file
4
testing/resources/dart_repo/.pre-commit-hooks.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- id: hello-world-dart
|
||||
name: hello world dart
|
||||
entry: hello-world-dart
|
||||
language: dart
|
6
testing/resources/dart_repo/bin/hello-world-dart.dart
Normal file
6
testing/resources/dart_repo/bin/hello-world-dart.dart
Normal file
|
@ -0,0 +1,6 @@
|
|||
import 'package:ansicolor/ansicolor.dart';
|
||||
|
||||
void main() {
|
||||
AnsiPen pen = new AnsiPen()..red();
|
||||
print("hello hello " + pen("world"));
|
||||
}
|
10
testing/resources/dart_repo/pubspec.yaml
Normal file
10
testing/resources/dart_repo/pubspec.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
environment:
|
||||
sdk: '>=2.10.0 <3.0.0'
|
||||
|
||||
name: hello_world_dart
|
||||
|
||||
executables:
|
||||
hello-world-dart:
|
||||
|
||||
dependencies:
|
||||
ansicolor: ^2.0.1
|
|
@ -1,4 +1,4 @@
|
|||
- id: dotnet example hook
|
||||
- id: dotnet-example-hook
|
||||
name: dotnet example hook
|
||||
entry: testeroni
|
||||
language: dotnet
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
- id: dotnet example hook
|
||||
- id: dotnet-example-hook
|
||||
name: dotnet example hook
|
||||
entry: testeroni
|
||||
language: dotnet
|
||||
|
|
|
@ -72,6 +72,7 @@ def run_opts(
|
|||
commit_msg_filename='',
|
||||
checkout_type='',
|
||||
is_squash_merge='',
|
||||
rewrite_command='',
|
||||
):
|
||||
# These are mutually exclusive
|
||||
assert not (all_files and files)
|
||||
|
@ -92,6 +93,7 @@ def run_opts(
|
|||
commit_msg_filename=commit_msg_filename,
|
||||
checkout_type=checkout_type,
|
||||
is_squash_merge=is_squash_merge,
|
||||
rewrite_command=rewrite_command,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue