forked from dotnetGame/MineCase
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
28 lines (28 loc) · 849 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
language: csharp
dotnet: 3.1.1
mono: none
script:
# build
- cd ./src
- dotnet restore
- dotnet build -c TravisCI
# stop all test and docker buid for refactor
# test
# - cd ../tests
# - dotnet test
# docker build
# - cd ../src/MineCase.Gateway
# - dotnet publish -c TravisCI -o obj/Docker/publish
# - docker build -t minecase.gateway .
# - cd ../MineCase.Server
# - dotnet publish -c TravisCI -o obj/Docker/publish
# - docker build -t minecase.server .
# docker push
# - docker tag minecase.gateway sunnycase/minecase.gateway:ci-latest
# - docker tag minecase.server sunnycase/minecase.server:ci-latest
# - >
# if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
# docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
# docker push sunnycase/minecase.gateway
# docker push sunnycase/minecase.server
# fi