1 Star 0 Fork 61

zhao_jd/DTC

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
杨爽 提交于 2021-09-01 19:07 . Refine Docker and Test Sample. (#9)
# Build matrix / environment variables are explained on:
# http://about.travis-ci.org/docs/user/build-configuration/
# This file can be validated on: http://lint.travis-ci.org/
language: cpp
compiler:
- g++
os:
- linux
addons:
apt:
packages:
- g++-4.9
env:
- DTC_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
before_install:
- eval "${DTC_EVAL}"
install:
- echo ${CC}
- ${CC} --version
- echo ${CXX}
- ${CXX} --version
- cmake --version
- sudo apt-get install snappy libsnappy-dev zlib1g zlib1g-dev bzip2 liblz4-dev libasan0 openssl libmxml-dev
script:
- mkdir build/
- cd build/
- cmake -DCMAKE_TEST_OPTION=ON ../
- make
after_success:
- cd ../
- cp conf/* dockerfiles/server/
- cp build/src/core/dtcd dockerfiles/server/
- cp build/src/devel/cpp/libdtc.2.so dockerfiles/sdk-cpp/
- cp build/test/* dockerfiles/sdk-cpp/
- cp test/* dockerfiles/sdk-cpp/
- cp src/devel/cpp/dtcapi.h dockerfiles/sdk-cpp/
- cd dockerfiles/server/
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t $DOCKER_USERNAME/server:latest .
- docker push $DOCKER_USERNAME/server:latest
- cd ../sdk-cpp/
- docker build -t $DOCKER_USERNAME/sdk-cpp:latest .
- docker push $DOCKER_USERNAME/sdk-cpp:latest
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zhao_jd/dtc.git
git@gitee.com:zhao_jd/dtc.git
zhao_jd
dtc
DTC
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385