forked from dotnetclub-net/dotnetclub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (40 loc) · 1.2 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
43
44
45
46
language: csharp
matrix:
include:
- os: linux
dist: xenial
addons:
chrome: stable
apt:
packages:
- gettext
- libcurl4-openssl-dev
- libicu-dev
- libssl-dev
- libunwind8
- zlib1g
mono: 5.4.1
dotnet: 2.2.300
services:
- docker
install:
- nvm install 8.12.0
- nvm use 8.12.0
- yarn
branches:
only:
- master
- dev
script:
- tag=`date -u +%Y%m%d%H%M` ; export imagetag="jijiechen/dotnetclub:$tag" export admintag="jijiechen/dotnetclub-adm:$tag"
- ./build-linux.sh --target=ci --imagetag="$imagetag"
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$DOCKER_USERNAME" != "" ]; then docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD && docker push $imagetag ; fi
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$DOCKER_USERNAME" != "" ]; then docker push $admintag ; fi
after_success:
- ./codecov -f "./test/Discussion.Web.Tests/coverage.opencover.xml" -t $CODECOV_TOKEN
- ./codecov -f "./test/Discussion.Admin.Tests/coverage.opencover.xml" -t $CODECOV_TOKEN
- ./codecov -f "./src/Discussion.Admin/ClientApp/coverage/lcov.info" -t $CODECOV_TOKEN
cache:
yarn: true
directories:
- /home/travis/.nuget/packages