2017-10-29 14:16:38 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
2018-12-04 17:45:45 +00:00
|
|
|
validate-scripts:
|
2017-10-29 14:16:38 +00:00
|
|
|
docker:
|
2018-12-04 17:45:45 +00:00
|
|
|
- image: acemod/sqflint:latest
|
2017-10-29 14:16:38 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2018-02-06 14:00:17 +00:00
|
|
|
- run:
|
2019-03-31 20:27:51 +00:00
|
|
|
name: Validate SQF and Config style and Stringtable entries
|
|
|
|
command: python tools/sqf_validator.py && python tools/config_style_checker.py && python tools/check_strings.py
|
2018-12-04 17:45:45 +00:00
|
|
|
|
|
|
|
linting:
|
|
|
|
docker:
|
|
|
|
- image: acemod/sqflint:latest
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: Lint sqf code
|
|
|
|
command: sqflint -d addons || true
|
|
|
|
|
|
|
|
armake:
|
|
|
|
docker:
|
|
|
|
- image: acemod/armake:master
|
|
|
|
steps:
|
|
|
|
- checkout
|
2018-02-04 20:38:59 +00:00
|
|
|
- run:
|
2018-05-20 09:08:58 +00:00
|
|
|
name: Version
|
2018-02-04 20:38:59 +00:00
|
|
|
command: armake --version
|
2018-05-20 09:07:00 +00:00
|
|
|
- run:
|
|
|
|
name: Build
|
|
|
|
command: |
|
2018-05-23 20:05:33 +00:00
|
|
|
make -j 4
|
2018-12-04 17:45:45 +00:00
|
|
|
|
|
|
|
update-docs:
|
|
|
|
docker:
|
|
|
|
- image: acemod/armake:latest
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
2018-02-04 20:38:59 +00:00
|
|
|
name: Update documentation and translation statistics
|
2018-12-04 17:45:45 +00:00
|
|
|
command: |
|
2018-02-04 20:38:59 +00:00
|
|
|
if [ "${CIRCLE_BRANCH}" == "master" ] && [ "${CIRCLE_PROJECT_USERNAME}" == "acemod" ]; then
|
|
|
|
pip install pygithub pygithub3
|
|
|
|
python3 tools/deploy.py
|
|
|
|
else
|
|
|
|
echo "Skipping, not on acemod/ACE3 master branch..."
|
|
|
|
fi
|
2018-12-04 17:45:45 +00:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build-job:
|
|
|
|
jobs:
|
|
|
|
- linting
|
|
|
|
- validate-scripts
|
|
|
|
- armake:
|
|
|
|
requires:
|
|
|
|
- validate-scripts
|
|
|
|
- update-docs:
|
|
|
|
requires:
|
|
|
|
- armake
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only: master
|