File tree Expand file tree Collapse file tree 6 files changed +38
-3
lines changed Expand file tree Collapse file tree 6 files changed +38
-3
lines changed Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ RUN pip3 install grpcio grpcio-tools googleapis-common-protos
21
21
# Dependencies for skinny server
22
22
RUN go get -u github.com/gorilla/mux
23
23
24
- CMD ["/repo/build_container/build .sh" ]
24
+ CMD ["/repo/build_container/entry .sh" ]
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+
3
+ set -e
4
+
5
+ export LOCAL_USER_ID
6
+ export TEST_RABBLE
7
+
8
+ /repo/build_container/build.sh
9
+
10
+ if [ -n " ${TEST_RABBLE} " ]
11
+ then
12
+ /repo/build_container/test.sh
13
+ fi
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+
3
+ set -e
4
+
5
+ cd /repo
6
+
7
+ cd chump/ && npm run lint && npm run test && cd ..
8
+
9
+ # once we clean up the go build management, we should just be
10
+ # able to run go test /go/src/github.com/cppsd/rabble/...
11
+ # for all go dependencies
12
+
13
+ go test skinny/* .go
Original file line number Diff line number Diff line change 8
8
"build:prod" : " webpack --config webpack.config.js -d --mode production" ,
9
9
"start" : " webpack-dev-server --mode development --content-base ./dist --hot --inline --colors --port 3000 --open" ,
10
10
"lint" : " tslint --project ." ,
11
- "clean" : " rm -rf dist/*"
11
+ "clean" : " rm -rf dist/*" ,
12
+ "test" : " echo 'testing'"
12
13
},
13
14
"repository" : {
14
15
"type" : " git" ,
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env sh
2
-
3
2
set -e
4
3
4
+ # run_build.sh builds all of docker's build using the build_container.
5
+ # if _TEST_RABBLE is set, then it also runs the test script.
6
+
5
7
USER_ID=` id -u $USER `
6
8
7
9
REPO_ROOT=" $( git rev-parse --show-toplevel) "
@@ -27,6 +29,7 @@ docker run \
27
29
--rm \
28
30
--volume $REPO_ROOT :/repo \
29
31
-e LOCAL_USER_ID=$USER_ID \
32
+ -e TEST_RABBLE=$_TEST_RABBLE \
30
33
rabble_build:latest
31
34
32
35
echo " Done build"
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+
3
+ set -e
4
+
5
+ _TEST_RABBLE=ALL ./run_build.sh
You can’t perform that action at this time.
0 commit comments