forked from aaubry/YamlDotNet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (24 loc) · 993 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
29
sudo: required
services:
- docker
language: generic
git:
depth: false
install:
# For pull requests, create a new branch (idempotently) to workaround
# GitVersion limitation, i.e., it does not work well with merge commits.
# We use GitVersion nuget package in Git-Version cake task, that fails
# with CI job requests triggered by PRs (GitHub server creates merge
# commits for PRs, and call CI endpoints with new commit ID).
# Perhaps this limitation will go away once the following PR is merged:
# https://github.com/GitTools/GitVersion/pull/1609
#
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
git checkout $TRAVIS_BRANCH;
git reset $TRAVIS_COMMIT --hard;
else
git checkout -b $TRAVIS_PULL_REQUEST_BRANCH > /dev/null;
fi
- docker pull aaubry/yamldotnet
script:
- docker run -u root -v `pwd`:/build -w /build -it aaubry/yamldotnet ./build.sh --target Test-Release-Configurations # --verbosity Diagnostic