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
4a0d9dbc
Commit
4a0d9dbc
authored
Apr 27, 2016
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update build script
parent
c916ab33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
support/travis-build.py
support/travis-build.py
+4
-4
No files found.
support/travis-build.py
View file @
4a0d9dbc
...
@@ -44,16 +44,16 @@ if build == 'Doc':
...
@@ -44,16 +44,16 @@ if build == 'Doc':
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
fmt_dir
,
'doc'
))
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
fmt_dir
,
'doc'
))
import
build
import
build
html_dir
=
build
.
build_docs
()
html_dir
=
build
.
build_docs
()
repo
=
'
cppformat
.github.io'
repo
=
'
fmtlib
.github.io'
if
travis
and
'KEY'
not
in
os
.
environ
:
if
travis
and
'KEY'
not
in
os
.
environ
:
# Don't update the repo if building on Travis from an account that doesn't
# Don't update the repo if building on Travis from an account that doesn't
# have push access.
# have push access.
print
(
'Skipping update of '
+
repo
)
print
(
'Skipping update of '
+
repo
)
exit
(
0
)
exit
(
0
)
# Clone the
cppformat
.github.io repo.
# Clone the
fmtlib
.github.io repo.
rmtree_if_exists
(
repo
)
rmtree_if_exists
(
repo
)
git_url
=
'https://github.com/'
if
travis
else
'git@github.com:'
git_url
=
'https://github.com/'
if
travis
else
'git@github.com:'
check_call
([
'git'
,
'clone'
,
git_url
+
'
cppformat
/{}.git'
.
format
(
repo
)])
check_call
([
'git'
,
'clone'
,
git_url
+
'
fmtlib
/{}.git'
.
format
(
repo
)])
# Copy docs to the repo.
# Copy docs to the repo.
target_dir
=
os
.
path
.
join
(
repo
,
'dev'
)
target_dir
=
os
.
path
.
join
(
repo
,
'dev'
)
rmtree_if_exists
(
target_dir
)
rmtree_if_exists
(
target_dir
)
...
@@ -67,7 +67,7 @@ if build == 'Doc':
...
@@ -67,7 +67,7 @@ if build == 'Doc':
check_call
([
'git'
,
'commit'
,
'-m'
,
'Update documentation'
],
cwd
=
repo
)
check_call
([
'git'
,
'commit'
,
'-m'
,
'Update documentation'
],
cwd
=
repo
)
cmd
=
'git push'
cmd
=
'git push'
if
travis
:
if
travis
:
cmd
+=
' https://$KEY@github.com/
cppformat/cppformat
.github.io.git master'
cmd
+=
' https://$KEY@github.com/
fmtlib/fmtlib
.github.io.git master'
p
=
Popen
(
cmd
,
shell
=
True
,
stdout
=
PIPE
,
stderr
=
STDOUT
,
cwd
=
repo
)
p
=
Popen
(
cmd
,
shell
=
True
,
stdout
=
PIPE
,
stderr
=
STDOUT
,
cwd
=
repo
)
# Print the output without the key.
# Print the output without the key.
print
(
p
.
communicate
()[
0
].
replace
(
os
.
environ
[
'KEY'
],
'$KEY'
))
print
(
p
.
communicate
()[
0
].
replace
(
os
.
environ
[
'KEY'
],
'$KEY'
))
...
...
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