Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
3ce6c7bd
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
12 个月 前同步成功
通知
0
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3ce6c7bd
编写于
12月 06, 2017
作者:
K
Khaled Hosny
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ci] Sort out Travis configuration
Use a matrix to avoid a gazillion if's.
上级
5a6d2b98
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
58 addition
and
27 deletion
+58
-27
.ci/deploy-docs.sh
.ci/deploy-docs.sh
+2
-0
.ci/run-coveralls.sh
.ci/run-coveralls.sh
+14
-0
.travis.yml
.travis.yml
+42
-27
未找到文件。
.ci/deploy-docs.sh
浏览文件 @
3ce6c7bd
...
...
@@ -3,6 +3,8 @@
set
-x
set
-o
errexit
-o
nounset
if
test
"x
$TRAVIS_SECURE_ENV_VARS
"
!=
xtrue
;
then
exit
;
fi
BRANCH
=
"
$TRAVIS_BRANCH
"
if
test
"x
$BRANCH
"
!=
xmaster
;
then
exit
;
fi
...
...
.ci/run-coveralls.sh
0 → 100755
浏览文件 @
3ce6c7bd
#!/bin/bash
set
-x
set
-o
errexit
-o
nounset
if
test
"x
$TRAVIS_SLUG
"
!=
x
"harfbuzz/harfbuzz"
;
then
exit
;
fi
pip
install
--user
nose
pip
install
--user
cpp-coveralls
export
PATH
=
$HOME
/.local/bin:
$PATH
rm
-f
src/.libs/NONE.gcov
touch
src/NONE
coveralls
-e
docs
.travis.yml
浏览文件 @
3ce6c7bd
# Build Configuration for Travis
sudo
:
required
# For Trusty beta
os
:
-
linux
-
osx
dist
:
trusty
language
:
cpp
compiler
:
-
clang
-
gcc
env
:
global
:
-
CPPFLAGS=""
-
CFLAGS="-Werror --coverage"
-
CXXFLAGS="-Werror -Wno-deprecated-register --coverage"
# glib uses register and clang raises a warning
-
LDFLAGS="--coverage"
install
:
-
if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install --user nose; fi
-
if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install --user cpp-coveralls; fi
# for coveralls.io code coverage tracking
-
if [ "$TRAVIS_OS_NAME" == "linux" ]; then export PATH=$HOME/.local/bin:$PATH; fi
# Make sure we can find the above Python packages
-
if [ "$TRAVIS_OS_NAME" == "osx" ]; then export CXXFLAGS="$CXXFLAGS -Wno-deprecated-declarations"; fi;
# https://github.com/harfbuzz/harfbuzz/issues/345
-
if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi;
-
if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew uninstall libtool && brew install libtool; fi
# Workaround Travis/brew bug
-
if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ragel freetype glib gobject-introspection cairo icu4c graphite2; fi
-
if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew link --force icu4c; fi
# icu4c is keg-only
script
:
-
NOCONFIGURE=1 ./autogen.sh
-
export CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2"
-
if [ "$TRAVIS_OS_NAME" == "linux" -a "$CC" == "gcc" ]; then export CONFIGURE_OPTS="$CONFIGURE_OPTS --enable-gtk-doc"; fi
-
if [ "$TRAVIS_OS_NAME" == "osx" ]; then export CONFIGURE_OPTS="$CONFIGURE_OPTS --with-coretext"; fi
-
./configure $CONFIGURE_OPTS
-
make
-
make check || (cat */test-suite.log test/*/test-suite.log &&
false
)
-
if [ "$TRAVIS_OS_NAME" == "linux" -a "$CC" == "gcc" -a "$TRAVIS_SLUG" == "harfbuzz/harfbuzz" ]; then rm -f src/.libs/NONE.gcov; touch src/NONE; coveralls -e docs; fi
after_success
:
-
if [ "$TRAVIS_OS_NAME" == "linux" -a "$CC" == "gcc" -a "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then bash .ci/deploy-docs.sh; fi
-
CONFIGURE_OPTS="--with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2"
-
NOCONFIGURE=1
matrix
:
include
:
-
os
:
linux
compiler
:
gcc
script
:
-
./autogen.sh
-
./configure $CONFIGURE_OPTS --enable-gtk-doc
-
make
-
make check || (cat */test-suite.log test/*/test-suite.log &&
false
)
after_success
:
-
bash .ci/run-coveralls.sh
# for coveralls.io code coverage tracking
-
bash .ci/deploy-docs.sh
-
os
:
linux
compiler
:
clang
script
:
-
./autogen.sh
-
./configure $CONFIGURE_OPTS
-
make
-
make check || (cat */test-suite.log test/*/test-suite.log &&
false
)
-
os
:
osx
compiler
:
clang
install
:
# https://github.com/harfbuzz/harfbuzz/issues/345
-
export CXXFLAGS="$CXXFLAGS -Wno-deprecated-declarations"
-
brew update;
# Workaround Travis/brew bug
-
brew uninstall libtool && brew install libtool
-
brew install ragel freetype glib gobject-introspection cairo icu4c graphite2
-
brew link --force icu4c
# icu4c is keg-only
script
:
-
./autogen.sh
-
./configure $CONFIGURE_OPTS --with-coretext
-
make
-
make check || (cat */test-suite.log test/*/test-suite.log &&
false
)
notifications
:
irc
:
"
irc.freenode.org#harfbuzz"
email
:
harfbuzz@lists.freedesktop.org
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录