Skip to content

Commit 57a25ee

Browse files
committed
initial commit
0 parents  commit 57a25ee

File tree

3 files changed

+84
-0
lines changed

3 files changed

+84
-0
lines changed

Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM thojkooi/ci-python
2+
3+
RUN pip install sqflint && mkdir /addons
4+
5+
CMD ["sqflint", "--exit=e", "-d", "/addons"]

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 ACE Mod
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Docker sqflint
2+
3+
Docker image with sqflint installed, to help speed up build times in CI pipelines.
4+
5+
This uses an alpine based with Python and installs [sqflint](https://github.com/LordGolias/sqf).
6+
7+
[![Docker Build Statu](https://img.shields.io/docker/pulls/acemod/sqflint.svg)](https://hub.docker.com/r/acemod/sqflint/)
8+
9+
## Table of Contents
10+
11+
- [Available tools](#availble-tools)
12+
- [Usage](#usage)
13+
- [Contribute](#contribute)
14+
- [License](#license)
15+
16+
## Available tools
17+
18+
- git
19+
- python3
20+
- make
21+
- zip
22+
- sqflint
23+
24+
## Usage
25+
26+
In gitlab-ci:
27+
28+
```yaml
29+
unit-tests:
30+
stage: test
31+
image: acemod/sqflint:latest
32+
script:
33+
- sqflint --exit=e -d addons
34+
```
35+
36+
circle-ci:
37+
38+
```yml
39+
version: 2
40+
jobs:
41+
build:
42+
docker:
43+
- image: acemod/sqflint
44+
steps:
45+
- checkout
46+
- run:
47+
name: linting
48+
command: |
49+
sqflint --exit=e -d addons
50+
```
51+
52+
## Contribute
53+
54+
PRs accepted. All issues should be reported in the [Github issue tracker](https://github.com/acemod/docker-sqflint/issues).
55+
56+
## License
57+
58+
[MIT © ACE Mod](LICENSE)

0 commit comments

Comments
 (0)