mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
30769f9428
* add sqflint to circleci * lint working directory * do not exit with 1 on errors * split up build jobs * change linting not to be required * use armake docker image for updating docs
64 lines
1.4 KiB
YAML
64 lines
1.4 KiB
YAML
version: 2
|
|
jobs:
|
|
validate-scripts:
|
|
docker:
|
|
- image: acemod/sqflint:latest
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Validate SQF and Config style
|
|
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
|
|
- run:
|
|
name: Version
|
|
command: armake --version
|
|
- run:
|
|
name: Build
|
|
command: |
|
|
make -j 4
|
|
|
|
update-docs:
|
|
docker:
|
|
- image: acemod/armake:latest
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Update documentation and translation statistics
|
|
command: |
|
|
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
|