ReStocked/.travis.yml

52 lines
1.8 KiB
YAML
Raw Normal View History

2019-02-20 00:19:31 +00:00
language: python
python:
- 3.6
install:
- pip install awscli boto3 requests
branches:
only:
- prod
script:
2019-02-20 00:34:38 +00:00
- git clone https://github.com/post-kerbin-mining-corporation/build-deploy.git # clone this repo, it contains the stuff that does the heavy lifting
2019-02-20 00:19:31 +00:00
- cd build-deploy
- git checkout master
- cd ..
2019-03-04 18:06:55 +00:00
- pytest -s --testpath "Distribution/" build-deploy/src/tests/ # run the deploy tests
2019-02-20 00:34:38 +00:00
- python build-deploy/src/package.py --f "Distribution/Restock/.mod_data.yml" # Build RS package
- python build-deploy/src/package.py --f "Distribution/RestockPlus/.mod_data.yml" # Build RS+ package
2019-02-20 00:19:31 +00:00
before_deploy:
2019-02-20 00:34:38 +00:00
- python build-deploy/src/stage.py --f "Distribution/Restock/.mod_data.yml" # Run the staging script. Note that tags will come off restock base always
2019-02-20 00:19:31 +00:00
deploy:
- provider: script
2019-02-20 00:34:38 +00:00
script: python build-deploy/src/deploy.py --f "Distribution/Restock/.mod_data.yml" # Deploy RS package to spacedock, curse, github
2019-02-20 00:19:31 +00:00
skip_cleanup: true
on:
2019-03-04 22:51:01 +00:00
branch: prod
2019-02-20 00:19:31 +00:00
- provider: script
2019-02-20 00:34:38 +00:00
script: python build-deploy/src/deploy.py --f "Distribution/RestockPlus/.mod_data.yml" # Deploy RS+ package to spacedock, curse, github
2019-02-20 00:19:31 +00:00
skip_cleanup: true
on:
2019-03-04 22:51:01 +00:00
branch: prod
2019-02-20 00:19:31 +00:00
- 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/ReStock
skip_cleanup: true
acl: public_read
region: us-east-2
upload-dir: restock
on:
2019-03-04 22:51:01 +00:00
branch: prod
2019-02-20 00:19:31 +00:00
- 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/ReStockPlus
skip_cleanup: true
acl: public_read
region: us-east-2
upload-dir: restockplus
on:
2019-03-04 22:51:01 +00:00
branch: prod