Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
41356aa0
Commit
41356aa0
authored
Jun 15, 2016
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Format scripts
parent
e9a0d314
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
233 additions
and
228 deletions
+233
-228
support/appveyor-build.py
support/appveyor-build.py
+16
-15
support/download.py
support/download.py
+40
-40
support/release.py
support/release.py
+1
-1
support/timer.py
support/timer.py
+24
-24
support/travis-build.py
support/travis-build.py
+65
-61
support/update-converity-branch.py
support/update-converity-branch.py
+15
-15
support/update-website.py
support/update-website.py
+72
-72
No files found.
support/appveyor-build.py
View file @
41356aa0
...
...
@@ -13,7 +13,8 @@ if build == 'mingw':
cmake_command
.
append
(
'-GMinGW Makefiles'
)
build_command
=
[
'mingw32-make'
,
'-j4'
]
test_command
=
[
'mingw32-make'
,
'test'
]
# Remove the path to Git bin directory from $PATH because it breaks MinGW config.
# Remove the path to Git bin directory from $PATH because it breaks
# MinGW config.
path
=
path
.
replace
(
r'C:\Program Files (x86)\Git\bin'
,
''
)
os
.
environ
[
'PATH'
]
=
r'C:\MinGW\bin;'
+
path
else
:
...
...
support/download.py
View file @
41356aa0
support/release.py
View file @
41356aa0
support/timer.py
View file @
41356aa0
support/travis-build.py
View file @
41356aa0
...
...
@@ -19,21 +19,15 @@ def makedirs_if_not_exist(dir):
if
e
.
errno
!=
errno
.
EEXIST
:
raise
fmt_dir
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)))
build
=
os
.
environ
[
'BUILD'
]
if
build
==
'Doc'
:
travis
=
'TRAVIS'
in
os
.
environ
# Install dependencies.
if
travis
:
def
install_dependencies
():
branch
=
os
.
environ
[
'TRAVIS_BRANCH'
]
if
branch
!=
'master'
:
print
(
'Branch: '
+
branch
)
exit
(
0
)
# Ignore non-master branches
check_call
(
'curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key
|
'
+
'sudo apt-key add -'
,
shell
=
True
)
check_call
(
'echo "deb https://deb.nodesource.com/node_0.10 precise main"
|
'
+
'sudo tee /etc/apt/sources.list.d/nodesource.list'
,
shell
=
True
)
check_call
(
'curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key '
+
'
|
sudo apt-key add -'
,
shell
=
True
)
check_call
(
'echo "deb https://deb.nodesource.com/node_0.10 precise main" '
+
'
|
sudo tee /etc/apt/sources.list.d/nodesource.list'
,
shell
=
True
)
check_call
([
'sudo'
,
'apt-get'
,
'update'
])
check_call
([
'sudo'
,
'apt-get'
,
'install'
,
'python-virtualenv'
,
'nodejs'
])
check_call
([
'npm'
,
'install'
,
'-g'
,
'less'
,
'less-plugin-clean-css'
])
...
...
@@ -41,14 +35,22 @@ if build == 'Doc':
urllib
.
urlretrieve
(
'http://mirrors.kernel.org/ubuntu/pool/main/d/doxygen/'
+
deb_file
,
deb_file
)
check_call
([
'sudo'
,
'dpkg'
,
'-i'
,
deb_file
])
fmt_dir
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)))
build
=
os
.
environ
[
'BUILD'
]
if
build
==
'Doc'
:
travis
=
'TRAVIS'
in
os
.
environ
if
travis
:
install_dependencies
()
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
fmt_dir
,
'doc'
))
import
build
build
.
create_build_env
()
html_dir
=
build
.
build_docs
()
repo
=
'fmtlib.github.io'
if
travis
and
'KEY'
not
in
os
.
environ
:
# Don't update the repo if building on Travis from an account that doesn'
t
#
have push access.
# Don't update the repo if building on Travis from an account tha
t
# doesn't
have push access.
print
(
'Skipping update of '
+
repo
)
exit
(
0
)
# Clone the fmtlib.github.io repo.
...
...
@@ -88,7 +90,9 @@ common_cmake_flags = [
]
extra_cmake_flags
=
[]
if
standard
!=
'0x'
:
extra_cmake_flags
=
[
'-DCMAKE_CXX_FLAGS=-std=c++'
+
standard
,
'-DFMT_USE_CPP11=OFF'
]
extra_cmake_flags
=
[
'-DCMAKE_CXX_FLAGS=-std=c++'
+
standard
,
'-DFMT_USE_CPP11=OFF'
]
check_call
([
'cmake'
,
'-DFMT_DOC=OFF'
,
'-DFMT_PEDANTIC=ON'
,
fmt_dir
]
+
common_cmake_flags
+
extra_cmake_flags
,
cwd
=
build_dir
)
...
...
support/update-converity-branch.py
View file @
41356aa0
support/update-website.py
View file @
41356aa0
...
...
@@ -75,8 +75,8 @@ for version in ['1.0.0', '1.1.0', '2.0.0', '3.0.0']:
with
open
(
reference
)
as
f
:
data
=
f
.
read
()
data
=
data
.
replace
(
'std::ostream &'
,
'std::ostream&'
)
data
=
re
.
sub
(
re
.
compile
(
'doxygenfunction.. (bin|oct|hexu|hex)$'
,
re
.
MULTILINE
),
r'doxygenfunction:: \1(int)'
,
data
)
pat
=
re
.
compile
(
'doxygenfunction.. (bin|oct|hexu|hex)$'
,
re
.
MULTILINE
)
data
=
re
.
sub
(
pat
,
r'doxygenfunction:: \1(int)'
,
data
)
data
=
data
.
replace
(
'std::FILE*'
,
'std::FILE *'
)
data
=
data
.
replace
(
'unsigned int'
,
'unsigned'
)
with
open
(
reference
,
'w'
)
as
f
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment