Skip to content

Commit 9b65803

Browse files
committed
Update build environment
1 parent 46c3ec8 commit 9b65803

3 files changed

Lines changed: 14 additions & 12 deletions

File tree

Dockerfile.debug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM microsoft/dotnet:1.1.2-runtime
1+
FROM microsoft/dotnet:2.0.0-runtime-stretch
22

33
# Install the AWS CLI
44
RUN apt-get update && \

Dockerfile.release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM microsoft/dotnet:1.1.2-runtime
1+
FROM microsoft/dotnet:2.0.0-runtime-stretch
22

33
# Install the AWS CLI
44
RUN apt-get update && \

Scripts/Publish.sh

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
set -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+
517
if [ "${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

0 commit comments

Comments
 (0)