1 Star 0 Fork 0

han0nly/phasar

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 3.05 KB
一键复制 编辑 原始数据 按行查看 历史
Philipp Schubert 提交于 2020-12-16 13:32 . update branch
language: cpp
#compiler:
# - clang
# - gcc
cache:
directories:
- $TRAVIS_BUILD_DIR/boost_1_70_0/
matrix:
include:
- os: linux
dist: bionic
sudo: enabled
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- build-essential
- sqlite3
- libsqlite3-dev
- bear
- python3
- git
- cmake
- zlib1g-dev
- libncurses5-dev
- graphviz
- doxygen
- libcurl4-gnutls-dev
- libmysqlcppconn-dev
- libboost-filesystem1.65-dev
- libboost-system1.65-dev
- libboost-graph1.65-dev
- libboost-program-options1.65-dev
- libboost-log1.65-dev
- libboost-thread1.65-dev
env:
# - MATRIX_EVAL="CC=clang && CXX=clang++"
# - os: osx
# osx_image: xcode11.3
# sudo: enabled
# env:
# - MATRIX_EVAL="CC=clang && CXX=clang++"
branches:
- development
- master
- f-FixTravisCI
# commands that need to be run before installing the dependencies
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://apt.llvm.org/llvm.sh; chmod +x llvm.sh ; sudo ./llvm.sh 10 ; sudo apt-get install -y libllvm-10-ocaml-dev libllvm10 llvm-10 llvm-10-dev llvm-10-doc llvm-10-examples llvm-10-runtime clang-10 clang-tools-10 clang-10-doc libclang-common-10-dev libclang-10-dev libclang1-10 clang-format-10 clangd-10 ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis_wait 80 brew update ; fi
- eval "${MATRIX_EVAL}"
# install all dependencies
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo "checking machine"; cat /proc/meminfo; cat /proc/cpuinfo; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo "checking machine"; hostinfo; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CC=/usr/bin/clang-10; export CXX=/usr/bin/clang++-10; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis_wait 80 brew bundle --verbose; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/llvm/bin:$PATH"; fi
- echo "checking C++ compiler"; clang++ --version
# Initialize all submodules
- git submodule update --init --recursive
# commands that need to be run before execution
# before_script
# build all interesting targets
script:
- mkdir -p build
- cd build
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DPHASAR_BUILD_UNITTESTS=ON ..
- make -j2
- sudo make install
# - ctest -j2
# Build the examples
- cd $TRAVIS_BUILD_DIR/examples/llvm-hello-world
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make; fi
# Override llvm-config to match the required one
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo ln -sf `which llvm-config-10` `which llvm-config`; llvm-config --version; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd $TRAVIS_BUILD_DIR/examples/plugins; make; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd $TRAVIS_BUILD_DIR/examples/use-phasar-as-library; mkdir build; cd build/; cmake ..; make; fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/han0nly/phasar.git
git@gitee.com:han0nly/phasar.git
han0nly
phasar
phasar
master

搜索帮助