8月18日(周六)成都源创会火热报名中,四位一线行业大牛与你面对面,探讨区块链技术热潮下的冷思考。
Watch Star Fork

tboox / tboxCGVP

加入码云
与超过 300 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
跨平台的c开发库,提供asio、stream、容器、算法、xml/json/plist解析、数据库等常用模块 http://www.tboox.org
一键复制 编辑 原始数据 按行查看 历史
.travis.yml 2.87 KB ruki 提交于 2017-06-30 20:06 . improve travis and appveyor
sudo: false
language: C
os:
- linux
- osx
compiler:
- gcc
- clang
install:
- git clone --branch=dev https://github.com/tboox/xmake.git tboox/xmake --depth 1
- cd ./tboox/xmake
- ./scripts/get.sh __local__
- cd -
script:
- xmake
- xmake p
- xmake f -m debug
- xmake -r
- xmake c
- xmake f --micro=y
- xmake -r
- xmake f --small=y -m debug
- xmake
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
xmake m package -p iphoneos;
xmake m package -p iphoneos -f "-m debug";
xmake f -m profile;
xmake -r;
xmake f -m coverage;
xmake -r;
echo "testing stream ..";
xmake r demo stream http://tboox.net /tmp/a > ./error.txt;
xmake r demo stream_async_stream http://www.tboox.org /tmp/a > ./error.txt;
echo "testing regex ..";
xmake r demo regex > ./error.txt;
echo "testing network ..";
xmake r demo network_url > ./error.txt;
xmake r demo network_cookies > ./error.txt;
echo "testing libm ..";
xmake r demo libm_float > ./error.txt;
xmake r demo libm_double > ./error.txt;
echo "testing math ..";
xmake r demo math_fixed > ./error.txt;
echo "testing libc ..";
xmake r demo libc_time > ./error.txt;
xmake r demo libc_wchar > ./error.txt;
xmake r demo libc_stdlib > ./error.txt;
xmake r demo libc_string > ./error.txt;
echo "testing algorithm ..";
xmake r demo algorithm_find > ./error.txt;
xmake r demo algorithm_sort > ./error.txt;
echo "testing container ..";
xmake r demo container_list > ./error.txt;
xmake r demo container_heap > ./error.txt;
xmake r demo container_queue > ./error.txt;
xmake r demo container_vector > ./error.txt;
xmake r demo container_hash_map > ./error.txt;
echo "testing object ..";
xmake r demo object_dump ./res/object.xml > ./error.txt;
xmake r demo object_dump ./res/object.bin > ./error.txt;
xmake r demo object_dump ./res/object.json > ./error.txt;
xmake r demo object_dump ./res/object.bplist > ./error.txt;
xmake r demo object_dump ./res/object.xplist > ./error.txt;
echo "testing database ..";
xmake r demo database_sql /tmp/sqlite3.db > ./error.txt;
echo "testing utils ..";
xmake r demo utils_dump /tmp/sqlite3.db > ./error.txt;
xmake r demo utils_crc hello > ./error.txt;
xmake r demo utils_md5 hello > ./error.txt;
xmake r demo utils_sha hello > ./error.txt;
xmake r demo utils_bits > ./error.txt;
echo "testing platform ..";
xmake r demo platform_ifaddrs > ./error.txt;
xmake r demo platform_hostname > ./error.txt;
xmake r demo platform_backtrace > ./error.txt;
xmake r demo platform_thread_pool > ./error.txt;
fi
after_success:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
bash <(curl -s https://codecov.io/bash);
fi
after_failure:
- cat ./error.txt

评论 ( 0 )

你可以在登录后,发表评论