Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/test/leeway-build.sh
2486 views
1
#!/bin/bash
2
# Copyright (c) 2021 Gitpod GmbH. All rights reserved.
3
# Licensed under the GNU Affero General Public License (AGPL).
4
# See License.AGPL.txt in the project root for license information.
5
6
export CGO_ENABLED=0
7
8
mkdir -p bin
9
10
for AGENT in pkg/agent/*; do
11
echo "building agent $AGENT"
12
base=$(basename "$AGENT")
13
go build -trimpath -ldflags="-buildid= -w -s" -o bin/gitpod-integration-test-"${base%_agent}"-agent ./"$AGENT"
14
done
15
16
for COMPONENT in tests/components/*; do
17
echo "building test $COMPONENT"
18
OUTPUT=$(basename "$COMPONENT")
19
go test -trimpath -ldflags="-buildid= -w -s" -c -o bin/"$OUTPUT".test ./"$COMPONENT"
20
done
21
22
echo "building test tests/workspace"
23
go test -trimpath -ldflags="-buildid= -w -s" -o bin/workspace.test -c ./tests/workspace
24
25
for COMPONENT in tests/ide/*; do
26
echo "building test $COMPONENT"
27
OUTPUT=$(basename "$COMPONENT")
28
go test -trimpath -ldflags="-buildid= -w -s" -c -o bin/"$OUTPUT".test ./"$COMPONENT"
29
done
30
31