diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index c922620..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,46 +0,0 @@ -version: 2.1 - -defaults: &defaults - working_directory: ~/repo - docker: - - image: mcr.microsoft.com/dotnet/core/sdk:3.0 - environment: - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 - DOTNET_CLI_TELEMETRY_OPTOUT: 1 - -jobs: - test: - <<: *defaults - steps: - - checkout - - run: dotnet restore - - run: dotnet build -c Release - - run: dotnet test -c Release - - persist_to_workspace: - root: . - paths: ./encompass-cs/bin - - deploy: - <<: *defaults - steps: - - checkout - - attach_workspace: - at: . - - run: dotnet nuget push ./encompass-cs/bin/Release/EncompassECS.Framework.*.nupkg -k $API_KEY -s $NUGET_SOURCE - -workflows: - version: 2 - test_and_deploy: - jobs: - - test: - filters: - tags: - only: /.*/ - - deploy: - requires: - - test - filters: - branches: - ignore: /.*/ - tags: - only: /^\d+\.\d+\.\d+(-preview\d+)?$/ diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7d02a31 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,24 @@ + kind: pipeline + type: docker + name: default + + workspace: + path: /build + + steps: + - name: test + image: mcr.microsoft.com/dotnet/core/sdk:3.1 + commands: + - dotnet build -c Release + - dotnet test -c Release + + - name: deploy + image: mcr.microsoft.com/dotnet/core/sdk:3.1 + environment: + API_KEY: + from_secret: API_KEY + commands: + - dotnet nuget push /build/encompass-cs/bin/Release/EncompassECS.Framework.*.nupkg -s https://api.nuget.org/v3/index.json -k $API_KEY + when: + ref: + - refs/tags/*.*.* diff --git a/TODO b/TODO index 8094915..d96f6e9 100644 --- a/TODO +++ b/TODO @@ -3,7 +3,5 @@ - method to remove all components of a type without destroying Entities - method to remove a component of a type without destroying entity -- auto destroy entities that no longer have components - - look at test coverage - docs