Created
May 28, 2017 13:31
-
-
Save selcukusta/9f856e01fd7a2493ffa46a5fc23a6579 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| language: none | |
| build: | |
| pre_ci_boot: | |
| image_name: microsoft/dotnet | |
| image_tag: 1.1-sdk | |
| pull: true | |
| options: "-e HOME=/root" | |
| ci: | |
| - sudo apt-get install -y xsltproc | |
| - chmod g+w ./shippable/testresults | |
| - chmod g+w ./shippable/xunit-result | |
| - chmod a+x ./scripts/build.sh | |
| - ./scripts/build.sh | |
| - chmod a+x ./scripts/test.sh | |
| - ./scripts/test.sh | |
| post_ci: | |
| - export REPO=selcukusta/netcore-shippable-ci-test-sample | |
| - export TAG=`if [ "$BRANCH" == "master" ]; then echo "latest"; else echo $BRANCH ; fi` | |
| - docker build -f Dockerfile -t $REPO:$TAG . | |
| - docker tag $REPO:$TAG $REPO:netcoresample-build-$TRAVIS_BUILD_NUMBER | |
| - docker push $REPO | |
| integrations: | |
| hub: | |
| - integrationName: docker-hub-integration | |
| type: docker | |
| branches: | |
| only: | |
| - master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment