2017-10-29 14:16:38 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2018-11-18 19:36:40 +00:00
|
|
|
- image: acemod/armake:master
|
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
|
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
|
2017-10-29 14:16:38 +00:00
|
|
|
- deploy:
|
2018-02-04 20:38:59 +00:00
|
|
|
name: Update documentation and translation statistics
|
2017-10-29 14:16:38 +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
|