-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
42 lines (39 loc) · 1.15 KB
/
.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: csharp
solution: DnDTracker.sln
mono: none
dotnet: 2.2.401
jobs:
include:
- stage: build
script: dotnet build -c Release
- stage: test
script: dotnet test ./src/DnDTracker.Tests/DnDTracker.Tests.csproj
- stage: deploy
script:
- dotnet publish ./src/DnDTracker.Web/DnDTracker.Web.csproj -c Release -o $TRAVIS_BUILD_DIR/dndtracker-app
- cd $TRAVIS_BUILD_DIR/dndtracker-app
- echo $ENV_FILE >> env.json
- zip -r ../dndtracker-app.zip *
- cd ..
- zip deploy.zip ./dndtracker-app.zip ./aws-windows-deployment-manifest.json
deploy:
- provider: elasticbeanstalk
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key:
secure: $AWS_SECRET_ACCESS_KEY
region: us-east-2
app: dndtracker-app
env: dndtracker-$ENVIRONMENT
bucket_name: dndtracker-$ENVIRONMENT
zip_file: deploy.zip
skip_cleanup: true
edge: true
on:
branch: $TRAVIS_BRANCH
stages:
- build
- test
- name: deploy
if: branch = master OR branch = develop
after_failure:
- sleep 10