mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Add astyle to Circle CI build.
This commit is contained in:
parent
656040027d
commit
da4ba1731a
12
circle.yml
12
circle.yml
|
@ -12,6 +12,7 @@ machine:
|
|||
dependencies:
|
||||
pre:
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install astyle
|
||||
- sudo apt-get install clang
|
||||
- sudo apt-get install build-essential libtool autotools-dev automake checkinstall check git yasm
|
||||
- sudo apt-get install libopus-dev libvpx-dev pkg-config
|
||||
|
@ -25,9 +26,20 @@ dependencies:
|
|||
- java -version ; exit 0
|
||||
- gcc --version ; exit 0
|
||||
- clang --version ; exit 0
|
||||
- astyle --version ; exit 0
|
||||
|
||||
compile:
|
||||
override:
|
||||
### ----- check code style ------
|
||||
- cd .. ; cp -av c-toxcore ./astyle_check/
|
||||
- cd ../astyle_check/ ; ls -al other/astyle/astylerc
|
||||
- cd ../astyle_check/ ;
|
||||
SOURCES=`find . -name "*.[ch]" -and -not -name "*.api.h" -and -not -wholename "*crypto_pwhash*" -and -not -wholename "./super_donators/*"|sort`;
|
||||
astyle -n --options=other/astyle/astylerc $SOURCES ; exit 0
|
||||
- cd ../astyle_check/ ; git --no-pager diff
|
||||
- cd ../astyle_check/ ; git diff | cat > $CIRCLE_ARTIFACTS/astyle_check.patch 2>&1
|
||||
### ----- check code style ------
|
||||
|
||||
### ------- get libsodium -------
|
||||
- mkdir ~/libsodium
|
||||
- cd ~/libsodium/ ; git clone https://github.com/jedisct1/libsodium.git
|
||||
|
|
Loading…
Reference in New Issue
Block a user