mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-02 17:50:39 +00:00
- Ensure we use up to date build container when running tests. - Parallelise host setup for integration tests. - Pass some more circle env vars through to ./tools/tests so the scheduler works. - Gather coverage from multiple shards. - Create files as the right owner inside the container. - Parallelise the circle.yaml - Parallelise the intergration tests using existing machinery - Build experimental in parallel. - Use custom scheduler prefix for integration tests, so schedules don't clash with weave.
21 lines
696 B
Bash
Executable File
21 lines
696 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
SCOPE_SRC=$GOPATH/src/github.com/weaveworks/scope
|
|
|
|
# Mount the scope repo:
|
|
# -v $(pwd):/go/src/github.com/weaveworks/scope
|
|
|
|
# If we run make directly, any files created on the bind mount
|
|
# will have awkward ownership. So we switch to a user with the
|
|
# same user and group IDs as source directory. We have to set a
|
|
# few things up so that sudo works without complaining later on.
|
|
uid=$(stat --format="%u" $SCOPE_SRC)
|
|
gid=$(stat --format="%g" $SCOPE_SRC)
|
|
echo "weave:x:$uid:$gid::$SCOPE_SRC:/bin/sh" >>/etc/passwd
|
|
echo "weave:*:::::::" >>/etc/shadow
|
|
echo "weave ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
|
|
|
|
su weave -c "PATH=$PATH make -C $SCOPE_SRC BUILD_IN_CONTAINER=false $*"
|