ACE3/circle.yml

64 lines
1.4 KiB
YAML
Raw Normal View History

2017-10-29 14:16:38 +00:00
version: 2
jobs:
validate-scripts:
2017-10-29 14:16:38 +00:00
docker:
- image: acemod/sqflint:latest
2017-10-29 14:16:38 +00:00
steps:
- checkout
2018-02-06 14:00:17 +00:00
- run:
name: Validate SQF and Config style
2017-10-29 14:16:38 +00:00
command: python tools/sqf_validator.py && python tools/config_style_checker.py
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
- run:
name: Build
command: |
2018-05-23 20:05:33 +00:00
make -j 4
update-docs:
docker:
- image: acemod/armake:latest
steps:
- checkout
- run:
2018-02-04 20:38:59 +00:00
name: Update documentation and translation statistics
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
workflows:
version: 2
build-job:
jobs:
- linting
- validate-scripts
- armake:
requires:
- validate-scripts
- update-docs:
requires:
- armake
filters:
branches:
only: master