forked from acemod/ACE3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
63 lines (59 loc) · 1.41 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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