File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM microsoft/dotnet:1.1.2 -runtime
1+ FROM microsoft/dotnet:2.0.0 -runtime-stretch
22
33# Install the AWS CLI
44RUN apt-get update && \
Original file line number Diff line number Diff line change 1- FROM microsoft/dotnet:1.1.2 -runtime
1+ FROM microsoft/dotnet:2.0.0 -runtime-stretch
22
33# Install the AWS CLI
44RUN apt-get update && \
Original file line number Diff line number Diff line change 22
33set -e
44
5+ export DOTNETSDK=" 2.0.0-sdk-stretch"
6+
7+ docker run -it -d --name builder microsoft/dotnet:" $DOTNETSDK " tail -f /dev/null
8+
9+ docker exec builder bash -c ' mkdir -p app/SimpleToDoService; exit $?'
10+ docker exec builder bash -c ' mkdir -p app/SimpleToDoServiceTests; exit $?'
11+ docker cp src/SimpleToDoService/. builder:app/SimpleToDoService
12+ docker cp src/SimpleToDoServiceTests/. builder:app/SimpleToDoServiceTests
13+
14+ # run tests
15+ docker exec builder bash -c ' cd /app/SimpleToDoServiceTests; dotnet restore; dotnet test ./SimpleToDoServiceTests.csproj; exit $?'
16+
517if [ " ${TRAVIS_TAG} " != " " ]; then
618 # if tag doesn't contain word "beta" it's release build
719 if [[ " $TRAVIS_TAG " != * " beta" * ]]; then
@@ -13,16 +25,6 @@ if [ "${TRAVIS_TAG}" != "" ]; then
1325 export REPO=${DOCKER_AWS_REPONAME}
1426 export TAG=${TRAVIS_TAG} -$SUBTAG
1527
16- docker run -it -d --name builder microsoft/dotnet:1.1.2-sdk tail -f /dev/null
17-
18- docker exec builder bash -c ' mkdir -p app/SimpleToDoService; exit $?'
19- docker exec builder bash -c ' mkdir -p app/SimpleToDoServiceTests; exit $?'
20- docker cp src/SimpleToDoService/. builder:app/SimpleToDoService
21- docker cp src/SimpleToDoServiceTests/. builder:app/SimpleToDoServiceTests
22-
23- # run tests
24- docker exec builder bash -c ' cd /app/SimpleToDoServiceTests; dotnet restore; dotnet test ./SimpleToDoServiceTests.csproj; exit $?'
25-
2628 if [ " $SUBTAG " = " release" ]; then
2729 docker exec builder bash -c ' cd /app/SimpleToDoService; dotnet restore; dotnet publish --configuration release -o "../../published/release"; exit $?'
2830 else
You can’t perform that action at this time.
0 commit comments