Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
Travis fix codedev (#353)
Browse files Browse the repository at this point in the history
* Add entire containers folder

* Add entire containers folder

* init

* corrected the build command

* Documented each Dockerfile

* Delete ttt

* Deleted wrong folder

* Code re-write, to reduce complexity using just one Dockerfile. Making possible to compile the Node using source from master or development branch

* Removing deprecated folder

* Removing deprecated folder

* Added travis to build a docker image

* adding continer image build

* correcting Dockerfile path

* pushing Docker container to registry

* pushing Docker container to registry

* pushing Docker container to registry

* correcting auth env variables for docker registry

* correcting auth env variables for docker registry

* deleted wrong travis file

* changed default first command to be run after container starts

* changed default folder for builder stage

* build an SDK image and also push to registry

* build an SDK and a runtime image and also push to registry

* build is not builder tag :)

* set env vars

* run coverage tests inside SDK container

* corrected bug in docker run

* corrected bug docker run twice

* escape

* bash command

* remove ruby language

* add script

* new travis standard build stages

* new travis standard build stages

* new travis standard build stages

* all tags and branched to deploy scripts

* define branch deploy

* all_branches

* bug bash -c

* remove dup deploy

* use --password-stdin for security reasons

* changed instructions to update with CoZ official docker registry

* changed docker hub to cityofzion for origin deploy

* docker hub env REPO commented

* Corrected break lines

* travis conditional

* travis conditional1

* travis conditional

* travis conditional

* minor fix with repo push

* Revert "minor fix with repo push"

This reverts commit baa376e.

* insert condition REPO to not build if it's a forked repo

* fix bug, no $

* Condition to run only on CityofZion/neo-sharp repo

* docker conmpose to run node with neo-private-netwwork

* fix peers to point to default neo-privnet peers

* Integrate local-faucet in the multi-container ecosystem

* Fix Travis to send CodeDev reports to the portal

* Run container in the background - detached

* Remove container run. Not needed for now
  • Loading branch information
nunojusto authored and osmirnov committed Sep 17, 2018
1 parent 6accd65 commit 44e1dbe
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
language: csharp
os:
- linux
dist: trusty
dotnet: 2.1.402
mono: none
sudo: required

services:
- docker

install:
# build SDK image
- docker build --target builder -t neo-sharp_sdk ./containers/
# build container image
- docker build -t cityofzion/neo-sharp:latest ./containers/

script:
# run tests
- docker run -p 8000:8000 -it --rm --name neo-sharp-SDK neo-sharp_sdk bash -c "cd /repo/neo-sharp && find test -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild && dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover && /bin/bash <(curl -s https://codecov.io/bash) -v"
- dotnet restore
- find test -name *.csproj | xargs -I % dotnet add % package coverlet.msbuild
- dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover

after_success:
# if tests ok build runtime image
- docker build -t cityofzion/neo-sharp:latest ./containers/
# if tests ok publish CodeDev report
- bash <(curl -s https://codecov.io/bash) -v

0 comments on commit 44e1dbe

Please sign in to comment.