2020-06-17 03:50:43 +00:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- 3.6
|
|
|
|
before_install:
|
|
|
|
- echo -e "machine github.com\n login $GITHUB_OAUTH_TOKEN" > ~/.netrc
|
|
|
|
install:
|
|
|
|
- pip install awscli boto3 requests
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- release
|
|
|
|
script:
|
2020-11-15 05:19:26 +00:00
|
|
|
- git clone https://github.com/post-kerbin-mining-corporation/build-deploy.git
|
2020-06-17 03:50:43 +00:00
|
|
|
- cd build-deploy
|
2020-10-11 23:49:59 +00:00
|
|
|
- git checkout master
|
2020-06-17 03:50:43 +00:00
|
|
|
- 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:
|
|
|
|
- python build-deploy/src/stage.py --f ".mod_data.yml" # Run the staging script
|
|
|
|
deploy:
|
|
|
|
- provider: script
|
|
|
|
script: python build-deploy/src/deploy.py --f ".mod_data.yml" # Deploy package to spacedock, curse, github
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
2020-10-15 03:08:25 +00:00
|
|
|
branch: release
|