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
2ced9252
Commit
2ced9252
authored
Feb 12, 2015
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move logic from travis.yml to a Python script
parent
dd2e8b98
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
22 deletions
+28
-22
appveyor.yml
appveyor.yml
+15
-22
support/build.py
support/build.py
+13
-0
No files found.
appveyor.yml
View file @
2ced9252
environment
:
environment
:
CTEST_OUTPUT_ON_FAILURE
:
1
CTEST_OUTPUT_ON_FAILURE
:
1
matrix
:
matrix
:
-
B
uild
:
msvc
-
B
UILD
:
msvc
C
onfig
:
Debug
C
ONFIG
:
Debug
-
B
uild
:
msvc
-
B
UILD
:
msvc
C
onfig
:
Release
C
ONFIG
:
Release
-
B
uild
:
mingw
-
B
UILD
:
mingw
C
onfig
:
Debug
C
ONFIG
:
Debug
-
B
uild
:
mingw
-
B
UILD
:
mingw
C
onfig
:
Release
C
ONFIG
:
Release
install
:
install
:
-
ps
:
|
-
ps
:
|
if ($env:B
uild
-eq "mingw") {
if ($env:B
UILD
-eq "mingw") {
# Install MinGW.
# Install MinGW.
$url = "http://sourceforge.net/projects/mingw-w64/files/"
$url = "http://sourceforge.net/projects/mingw-w64/files/"
$url += "Toolchains%20targetting%20Win64/Personal%20B
uild
s/"
$url += "Toolchains%20targetting%20Win64/Personal%20B
UILD
s/"
$url += "mingw-builds/4.9.0/threads-win32/seh/"
$url += "mingw-builds/4.9.0/threads-win32/seh/"
$url += "x86_64-4.9.0-release-win32-seh-rt_v3-rev2.7z/download"
$url += "x86_64-4.9.0-release-win32-seh-rt_v3-rev2.7z/download"
Invoke-WebRequest -UserAgent wget -Uri $url -OutFile mingw.7z
Invoke-WebRequest -UserAgent wget -Uri $url -OutFile mingw.7z
&7z x -oC:\ mingw.7z > $null
&7z x -oC:\ mingw.7z > $null
}
}
-
set PATH=C:\Program Files (x86)\MSB
uild
\12.0\bin\;%PATH%;C:\mingw64\bin
-
set PATH=C:\Program Files (x86)\MSB
UILD
\12.0\bin\;%PATH%;C:\mingw64\bin
before_build
:
before_build
:
-
ps
:
|
-
python support/build.py
if ($env:Build -eq "mingw") {
# Remove path to Git bin directory from PATH because it breaks MinGW config.
$env:PATH = $env:PATH -replace "C:\\Program Files \(x86\)\\Git\\bin",""
$generator = "-GMinGW Makefiles"
}
-
echo "-DCMAKE_BUILD_TYPE=$env:Config"
-
cmake -DFMT_EXTRA_TESTS=ON "-DCMAKE_BUILD_TYPE=$env:Config" "$generator" .
build_script
:
build_script
:
-
ps
:
|
-
ps
:
|
if ($env:B
uild
-eq "mingw") {
if ($env:B
UILD
-eq "mingw") {
mingw32-make -j4
mingw32-make -j4
} else {
} else {
msbuild /m:4 /p:Config=$env:C
onfig
FORMAT.sln
msbuild /m:4 /p:Config=$env:C
ONFIG
FORMAT.sln
}
}
test_script
:
test_script
:
-
ps
:
|
-
ps
:
|
if ($env:B
uild
-eq "mingw") {
if ($env:B
UILD
-eq "mingw") {
mingw32-make test
mingw32-make test
} else {
} else {
msbuild RUN_TESTS.vcxproj
msbuild RUN_TESTS.vcxproj
...
...
support/build.py
0 → 100755
View file @
2ced9252
#!/usr/bin/env python
# Build the project on AppVeyor.
from
subprocess
import
check_call
import
os
env
=
os
.
environ
build
=
env
[
'BUILD'
]
if
build
==
'mingw'
:
# Remove path to Git bin directory from $PATH because it breaks MinGW config.
env
[
'PATH'
]
=
env
[
'PATH'
].
replace
(
r'C:\Program Files (x86)\Git\bin'
,
''
)
generator
=
[
'-GMinGW Makefiles'
]
check_call
([
'cmake'
,
'-DFMT_EXTRA_TESTS=ON'
,
'-DCMAKE_BUILD_TYPE='
+
env
[
'CONFIG'
]]
+
generator
,
env
=
env
)
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