Skip to content

Commit

Permalink
split up build jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
thojkooi committed Dec 2, 2018
1 parent 387cd5a commit bf7ac24
Showing 1 changed file with 36 additions and 13 deletions.
49 changes: 36 additions & 13 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,64 @@
version: 2
jobs:
build:
validate-scripts:
docker:
- image: acemod/armake:master
- 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
- deploy:
update-docs:
docker:
- image: acemod/sqflint:latest
steps:
- checkout
- run:
name: Update documentation and translation statistics
command: |
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
linting:
docker:
- image: acemod/sqflint:latest
steps:
- checkout
- run:
name: Lint sqf code
command: sqflint -d addons || true
workflows:
version: 2
build-job:
jobs:
- linting
- build
- validate-scripts
- armake:
requires:
- linting
- validate-scripts
- update-docs:
requires:
- armake
filters:
branches:
only: master

0 comments on commit bf7ac24

Please sign in to comment.