Skip to content

Commit

Permalink
New CI (#21)
Browse files Browse the repository at this point in the history
* Feature/ci (#18)

* test ci

* try to release on github

* deploy only in master

* beautify readme

* try to fix deploy in master only

* Feature/ci (#20)

* test

* test

* fix

* fix

* dont deploy in pr
  • Loading branch information
framebassman committed Apr 25, 2019
1 parent 26d0bfc commit 2b09fe8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 12 deletions.
28 changes: 25 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
matrix:
fast_finish: true
jobs:
include:
- language: csharp
- stage: Test
language: csharp
dist: xenial
mono: none
dotnet: 2.2
Expand All @@ -22,6 +22,28 @@ matrix:
script:
- npm test

- stage: Deploy
services:
- docker
env:
- RELEASE_NUMBER=1.1.$TRAVIS_BUILD_NUMBER
script:
- docker build --file ./Dockerfile . --tag framebassman/izzy:$RELEASE_NUMBER
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push framebassman/izzy
before_deploy:
- git config --local user.name $GIT_USERNAME
- git config --local user.email $GIT_EMAIL
- git tag $RELEASE_NUMBER
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
skip_cleanup: true

stages:
- Test
- name: Deploy
if: branch = master AND type != pull_request
branches:
only:
- /.*/
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


### CI status
| Branch | Travis-CI |
| ------------- |:----------------------------------------------------------------------------------:|
| master | ![](https://api.travis-ci.com/FrameBassman/izzy.svg?branch=master "master status") |
| dev | ![](https://api.travis-ci.com/FrameBassman/izzy.svg?branch=dev "dev status") |
| Branch | Travis-CI |
| ------------- |:--------------------------------------------------------------------------------------------------------------------------------------:|
| master | [![](https://api.travis-ci.com/FrameBassman/izzy.svg?branch=master "master status")](https://travis-ci.com/FrameBassman/izzy/branches) |
| dev | [![](https://api.travis-ci.com/FrameBassman/izzy.svg?branch=dev "dev status")](https://travis-ci.com/FrameBassman/izzy/branches) |
5 changes: 0 additions & 5 deletions Scripts/deploy.sh

This file was deleted.

0 comments on commit 2b09fe8

Please sign in to comment.