-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from ChrisAdderley/dev
Release 1.0.1
- Loading branch information
Showing
16 changed files
with
86 additions
and
671 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
mod-name: DeployableEngines | ||
package: | ||
include-dependencies: true # Include dependencies in the package | ||
included-gamedata: | ||
- DeployableEngines | ||
included-support: # Include these root-level files in packages | ||
- readme.txt | ||
- changelog.txt | ||
deploy: | ||
SpaceDock: | ||
enabled: false # activate/deactivate this deployment script | ||
mod-id: 558 # The Spacedock mod ID for deployment | ||
CurseForge: | ||
enabled: false # activate/deactivate this deployment script | ||
mod-id: 220671 # The CurseForge mod ID for deployment | ||
GitHub: | ||
enabled: true # activate/deactivate this deployment script |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,43 +7,28 @@ branches: | |
only: | ||
- master | ||
script: | ||
- python build_scripts/build.py | ||
- git clone https://github.com/post-kerbin-mining-corporation/build-deploy.git # clone this repo, it contains the stuff that does the heavy lifting | ||
- cd build-deploy | ||
- git checkout master | ||
- cd .. | ||
- pytest -s --testpath "GameData/" build-deploy/src/tests/ # run the deploy tests | ||
- python build-deploy/src/package.py --f ".mod_data.yml" # Build package | ||
before_deploy: | ||
- VERSION=$(cat build_scripts/version.txt) | ||
- CHANGELOG=$(cat build_scripts/changelog.md) | ||
- IFS='/'; BASENAME=($TRAVIS_REPO_SLUG); unset IFS; | ||
- RELEASE_NAME="${BASENAME[1]} $VERSION" | ||
- echo $VERSION | ||
- git config --local user.name "ChrisAdderley" | ||
- git config --local user.email "[email protected]" | ||
- git remote set-url origin https://ChrisAdderley:${GITHUB_OAUTH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git | ||
# Only tag if this is the first before_deploy (runs for all providers) | ||
- > | ||
if ! [ "$BEFORE_DEPLOY_RUN" ]; then | ||
export BEFORE_DEPLOY_RUN=1; | ||
git tag $VERSION; | ||
git push origin $VERSION; | ||
fi | ||
- python build-deploy/src/stage.py --f ".mod_data.yml" # Run the staging script | ||
deploy: | ||
- provider: s3 | ||
- provider: script | ||
script: python build-deploy/src/deploy.py --f ".mod_data.yml" # Deploy package to spacedock, curse, github | ||
skip_cleanup: true | ||
on: | ||
branch: master | ||
- provider: s3 # releases to S3 | ||
access_key_id: $AWS_ACCESS_KEY_ID | ||
secret_access_key: $AWS_SECRET_ACCESS_KEY | ||
bucket: "nertea-ksp-modding-releases" | ||
local_dir: deploy | ||
local_dir: deploy/DeployableEngines | ||
skip_cleanup: true | ||
acl: public_read | ||
region: us-east-2 | ||
upload-dir: deployable-engines | ||
on: | ||
condition: $TRAVIS_BRANCH = master | ||
- deploy: | ||
provider: releases | ||
api_key: $GITHUB_OAUTH_TOKEN | ||
file_glob: true | ||
file: deploy/* | ||
body: $CHANGELOG | ||
name: $RELEASE_NAME | ||
skip_cleanup: true | ||
on: | ||
tags: false | ||
condition: $TRAVIS_BRANCH = master | ||
branch: master |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"spec_version": "v1.4", | ||
"identifier": "DeployableEngines", | ||
"abstract": "A plugin to manage extending/retracting engine nozzles", | ||
"name": "Deployable Engines Plugin", | ||
"$kref": "#/ckan/github/ChrisAdderley/DeployableEngines", | ||
"$vref": "#/ckan/ksp-avc", | ||
"license": "MIT", | ||
"resources": { | ||
"homepage": "https://github.com/ChrisAdderley/DeployableEngines/wiki", | ||
"repository": "https://github.com/ChrisAdderley/DeployableEngines" | ||
}, | ||
"supports": [ | ||
{ "name": "KerbalAtomics" }, | ||
{ "name": "CryoEngines" } | ||
], | ||
"install": [ | ||
{ | ||
"find": "DeployableEngines", | ||
"install_to": "GameData" | ||
} | ||
] | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.