This repository has been archived by the owner on Oct 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(CMakeLists): make sure we change the version number in a single…
… place
- Loading branch information
1 parent
3f65690
commit dae1c9d
Showing
5 changed files
with
178 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
environment: | ||
matrix: | ||
- MSYSTEM: MINGW64 | ||
|
||
install: | ||
# upgrading gcc to 6.x fails | ||
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Suuy mingw-w64-x86_64-ninja mingw-w64-x86_64-cmake git mingw-w64-x86_64-mpfr" | ||
|
||
build_script: | ||
- C:\msys64\usr\bin\bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && mkdir build && cd build && cmake ../src -DINCLUDE_MSYS2_DLLS=ON -DCMAKE_BUILD_TYPE=Release -G Ninja" | ||
- C:\msys64\usr\bin\bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER/build && ninja && cpack" | ||
|
||
test_script: | ||
- C:\msys64\usr\bin\bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER/build && ctest -j4" | ||
|
||
artifacts: | ||
- path: build\lean-@LEAN_VERSION_MAJOR@.@LEAN_VERSION_MINOR@.@LEAN_VERSION_PATCH@-windows.zip | ||
name: binary | ||
|
||
deploy: | ||
description: 'Lean release' | ||
provider: GitHub | ||
auth_token: | ||
secure: d+yPrDEAbiNrcf3a0PDNYEn/ieOOP6M7cP9zje+QkJEjHFdjBjWMe8b3qrC1hrus | ||
artifact: binary | ||
draft: false | ||
prerelease: false | ||
on: | ||
appveyor_repo_tag: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
language: cpp | ||
sudo: true | ||
cache: apt | ||
dist: trusty | ||
addons: | ||
apt: | ||
sources: &apt_sources | ||
- ubuntu-toolchain-r-test | ||
- sourceline: 'ppa:kalakris/cmake' # cmake 2.8 for precise | ||
- sourceline: 'ppa:adrozdoff/cmake' # cmake 3 for trusty | ||
- sourceline: 'ppa:h-rayflood/llvm' | ||
packages: &default_packages | ||
- cmake | ||
- libgmp-dev | ||
- libmpfr-dev | ||
- libgoogle-perftools-dev | ||
- g++-4.9 | ||
- clang-3.4 | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
dist: precise | ||
env: | ||
CMAKE_CXX_COMPILER=g++-4.9 | ||
CMAKE_BUILD_TYPE=Release | ||
TARGET=build/lean-@LEAN_VERSION_MAJOR@.@LEAN_VERSION_MINOR@.@LEAN_VERSION_PATCH@-linux.tar.gz | ||
UPLOAD=ON | ||
STATIC=ON | ||
|
||
- os: linux | ||
env: | ||
CMAKE_CXX_COMPILER=clang++-3.4 | ||
CMAKE_BUILD_TYPE=Release | ||
TCMALLOC=ON | ||
|
||
- os: linux | ||
addons: &gcc6_addons | ||
apt: | ||
sources: *apt_sources | ||
packages: | ||
- *default_packages | ||
- g++-6 | ||
- gcc-6 | ||
env: | ||
CMAKE_CXX_COMPILER=g++-6 | ||
CMAKE_BUILD_TYPE=Release | ||
TCMALLOC=ON | ||
|
||
- os: linux | ||
addons: *gcc6_addons | ||
env: | ||
CMAKE_CXX_COMPILER=g++-6 | ||
CMAKE_BUILD_TYPE=Release | ||
TESTCOV=ON | ||
|
||
- os: linux | ||
addons: *gcc6_addons | ||
env: | ||
CMAKE_CXX_COMPILER=g++-6 | ||
CMAKE_BUILD_TYPE=Release | ||
MULTI_THREAD=OFF | ||
|
||
- os: linux | ||
env: | ||
CMAKE_CXX_COMPILER=clang++-3.4 | ||
CMAKE_BUILD_TYPE=Debug | ||
TCMALLOC=ON | ||
|
||
- os: linux | ||
dist: precise | ||
env: | ||
CMAKE_CXX_COMPILER=g++-4.9 | ||
CMAKE_BUILD_TYPE=Debug | ||
|
||
- os: osx | ||
env: | ||
CMAKE_CXX_COMPILER=clang++ | ||
CMAKE_BUILD_TYPE=Release | ||
TARGET=build/lean-@LEAN_VERSION_MAJOR@.@LEAN_VERSION_MINOR@.@LEAN_VERSION_PATCH@-darwin.zip | ||
UPLOAD=ON | ||
PACKAGE=TRUE | ||
|
||
- os: osx | ||
env: | ||
CMAKE_CXX_COMPILER=g++ | ||
CMAKE_BUILD_TYPE=Debug | ||
|
||
before_install: | ||
- if [[ $TRAVIS_OS_NAME == osx ]]; then | ||
brew update && | ||
brew install gcc && | ||
brew install gmp && | ||
brew install mpfr; | ||
fi | ||
|
||
script: | ||
- mkdir -p build | ||
- cd build | ||
- if [[ $TESTCOV != ON ]]; then TESTCOV=OFF; fi | ||
- if [[ $TCMALLOC != ON ]]; then TCMALLOC=OFF; fi | ||
- if [[ $STATIC != ON ]]; then STATIC=OFF; fi | ||
- if [[ $MULTI_THREAD != OFF ]]; then MULTI_THREAD=ON; fi | ||
- cmake -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE | ||
-DCMAKE_CXX_COMPILER=$CMAKE_CXX_COMPILER | ||
-DTESTCOV=$TESTCOV | ||
-DTCMALLOC=$TCMALLOC | ||
-DMULTI_THREAD=$MULTI_THREAD | ||
-DSTATIC=$STATIC | ||
../src | ||
- make -j2 | ||
- cpack | ||
# TODO(gabriel): add smaller test subset for debug and emscripten builds | ||
- if [[ $CMAKE_BUILD_TYPE == Release ]]; then | ||
yes "A" | ctest -j2 -V; | ||
else | ||
yes "A" | ctest -j2 -I 100,600,10 -V; | ||
fi | ||
- if [[ $PACKAGE == TRUE ]]; then make package; fi | ||
- cd .. | ||
|
||
after_script: | ||
- if [[ $TESTCOV == ON ]]; then bash <(curl -s https://codecov.io/bash) -x gcov-6; fi | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- lean-build@googlegroups.com | ||
on_success: change | ||
on_failure: always | ||
|
||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: NeTKs0tb0hM9yC1lJyc7Y8ev1rfEe9tpY8bS20hUivNKcX8S0HjJh/xtx/3LgrhcqVP0xKuDPE0YNQk3E9SO1ni2ESjIFIVXI/hpDLNjxjfaeW7rcpYcc7dy7ynEP23HnAOMr4PMHs0T/ATsJHKyDXTUi4yrQToBBTQUFvCKgo8= | ||
file: $TARGET | ||
skip_cleanup: true | ||
overwrite: true | ||
on: | ||
condition: $UPLOAD = ON | ||
repo: leanprover/lean | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters