Skip to content

Commit 5abe9b6

Browse files
Merge pull request #44 from ChrisAdderley/dev
Release 3.3.7
2 parents b4294d9 + 4959fbb commit 5abe9b6

15 files changed

Lines changed: 304 additions & 365 deletions

File tree

.mod_data.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
mod-name: CommunityTechTree
2+
package:
3+
include-dependencies: true # Include dependencies in the package
4+
included-gamedata:
5+
- CommunityTechTree
6+
included-support: # Include these root-level files in packages
7+
- readme.txt
8+
- changelog.txt
9+
- ForModders.md
10+
deploy:
11+
SpaceDock:
12+
enabled: true # activate/deactivate this deployment script
13+
mod-id: 534 # The Spacedock mod ID for deployment
14+
CurseForge:
15+
enabled: true # activate/deactivate this deployment script
16+
mod-id: 241908 # The CurseForge mod ID for deployment
17+
GitHub:
18+
enabled: true # activate/deactivate this deployment script

.travis.yml

Lines changed: 12 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,53 +7,28 @@ branches:
77
only:
88
- master
99
script:
10-
- python build_scripts/build.py
10+
- git clone https://github.com/post-kerbin-mining-corporation/build-deploy.git # clone this repo, it contains the stuff that does the heavy lifting
11+
- cd build-deploy
12+
- git checkout master
13+
- cd ..
14+
- pytest -s --testpath "GameData/" build-deploy/src/tests/ # run the deploy tests
15+
- python build-deploy/src/package.py --f ".mod_data.yml" # Build package
1116
before_deploy:
12-
- VERSION=$(cat build_scripts/version.txt)
13-
- CHANGELOG=$(cat build_scripts/changelog.md)
14-
- IFS='/'; BASENAME=($TRAVIS_REPO_SLUG); unset IFS;
15-
- RELEASE_NAME="${BASENAME[1]} $VERSION"
16-
- echo $VERSION
17-
- git config --local user.name "ChrisAdderley"
18-
- git config --local user.email "cadderley@gmail.com"
19-
- git remote set-url origin https://ChrisAdderley:${GITHUB_OAUTH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
20-
# Only tag if this is the first before_deploy (runs for all providers)
21-
- >
22-
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
23-
export BEFORE_DEPLOY_RUN=1;
24-
git tag $VERSION;
25-
git push origin $VERSION;
26-
fi
17+
- python build-deploy/src/stage.py --f ".mod_data.yml" # Run the staging script
2718
deploy:
2819
- provider: script
29-
script: python build_scripts/deploy.py --curse
20+
script: python build-deploy/src/deploy.py --f ".mod_data.yml" # Deploy package to spacedock, curse, github
3021
skip_cleanup: true
3122
on:
32-
condition: $TRAVIS_BRANCH = master
33-
- provider: script
34-
script: python build_scripts/deploy.py --spacedock
35-
skip_cleanup: true
36-
on:
37-
condition: $TRAVIS_BRANCH = master
38-
- provider: s3
23+
branch: master
24+
- provider: s3 # releases to S3
3925
access_key_id: $AWS_ACCESS_KEY_ID
4026
secret_access_key: $AWS_SECRET_ACCESS_KEY
4127
bucket: "nertea-ksp-modding-releases"
42-
local_dir: deploy
28+
local_dir: deploy/CommunityTechTree
4329
skip_cleanup: true
4430
acl: public_read
4531
region: us-east-2
4632
upload-dir: community-tech-tree
4733
on:
48-
condition: $TRAVIS_BRANCH = master
49-
- deploy:
50-
provider: releases
51-
api_key: $GITHUB_OAUTH_TOKEN
52-
file_glob: true
53-
file: deploy/*
54-
body: "$CHANGELOG"
55-
name: $RELEASE_NAME
56-
skip_cleanup: true
57-
on:
58-
tags: false
59-
condition: $TRAVIS_BRANCH = master
34+
branch: master

CKAN/CommunityTechTree.netkan

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"spec_version" : "v1.4",
3+
"identifier" : "CommunityTechTree",
4+
"$vref" : "#/ckan/ksp-avc",
5+
"license" : "CC-BY-NC-4.0",
6+
"name": "Community Tech Tree",
7+
"author": "Nertea",
8+
"abstract" : "Community-developed tech tree extension, with support for many mods.",
9+
"resources": {
10+
"homepage": "https://forum.kerbalspaceprogram.com/index.php?/topic/90530-16x-community-tech-tree-january-21/",
11+
"repository": "https://github.com/ChrisAdderley/CommunityTechTree"
12+
},
13+
"x_netkan_epoch" : "1",
14+
"depends" : [
15+
{ "name" : "ModuleManager", "min_version" : "2.6.2" }
16+
],
17+
"supports" : [
18+
{ "name" : "AlcubierreStandalone" },
19+
{ "name" : "CryoEngines" },
20+
{ "name" : "KerbalAtomics" },
21+
{ "name" : "KSPInterstellarExtended" },
22+
{ "name" : "ModularRocketSystem" },
23+
{ "name" : "ModularRocketSystemLITE" },
24+
{ "name" : "NearFuturePropulsion" },
25+
{ "name" : "NearFutureElectrical" },
26+
{ "name" : "NearFutureSolar" },
27+
{ "name" : "NearFutureConstruction" },
28+
{ "name" : "NearFutureSpacecraft" },
29+
{ "name" : "NearFutureLaunchVehicles" },
30+
{ "name" : "HeatControl" },
31+
{ "name" : "StationPartsExpansionRedux" },
32+
{ "name" : "SpaceY-Lifters" },
33+
{ "name" : "USI-LS" },
34+
{ "name" : "UKS" }
35+
],
36+
"conflicts" : [
37+
{ "name" : "ModOrientedTechTree" },
38+
{ "name" : "ModOrientedTechTree-Unmanned" }
39+
],
40+
"install" : [
41+
{ "find" : "CommunityTechTree", "install_to" : "GameData" }
42+
]
43+
}

0 commit comments

Comments
 (0)