2017-12-20 17:58:32 +08:00
|
|
|
# # # # sol2
|
|
|
|
# The MIT License (MIT)
|
|
|
|
#
|
|
|
|
# Copyright (c) 2013-2017 Rapptz, ThePhD, and contributors
|
|
|
|
#
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
|
|
# this software and associated documentation files (the "Software"), to deal in
|
|
|
|
# the Software without restriction, including without limitation the rights to
|
|
|
|
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
|
|
# the Software, and to permit persons to whom the Software is furnished to do so,
|
|
|
|
# subject to the following conditions:
|
|
|
|
#
|
|
|
|
# The above copyright notice and this permission notice shall be included in all
|
|
|
|
# copies or substantial portions of the Software.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
|
|
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
|
|
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
|
|
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
|
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
2016-06-09 00:30:47 +08:00
|
|
|
language: cpp
|
2016-06-08 23:59:21 +08:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2016-02-25 02:17:26 +08:00
|
|
|
|
2016-02-25 22:26:52 +08:00
|
|
|
git:
|
|
|
|
depth: 5
|
|
|
|
|
2016-06-10 05:53:11 +08:00
|
|
|
before_install:
|
2017-12-24 09:34:34 +08:00
|
|
|
- source ./scripts/preparation.osx.sh
|
2016-06-10 05:53:11 +08:00
|
|
|
|
|
|
|
install:
|
|
|
|
- install_os_deps
|
|
|
|
|
|
|
|
script:
|
|
|
|
- echo "Configuration info:"
|
|
|
|
- export_compiler_vars
|
|
|
|
- ninja --version
|
2017-12-12 03:12:51 +08:00
|
|
|
- python3 --version
|
|
|
|
- python3 bootstrap.py --ci && ninja
|
2016-06-10 05:53:11 +08:00
|
|
|
|
|
|
|
notifications:
|
2016-12-03 20:57:54 +08:00
|
|
|
webhooks:
|
|
|
|
urls:
|
|
|
|
- https://webhooks.gitter.im/e/b864d553270a069d26c8
|
|
|
|
on_success: change # options: [always|never|change] default: always
|
|
|
|
on_failure: always # options: [always|never|change] default: always
|
|
|
|
on_start: never # options: [always|never|change] default: always
|
2016-06-10 05:53:11 +08:00
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: change
|
|
|
|
|
2016-02-25 22:26:52 +08:00
|
|
|
matrix:
|
2017-07-04 16:41:32 +08:00
|
|
|
fast_finish: true
|
2016-02-25 22:26:52 +08:00
|
|
|
include:
|
2017-08-11 15:24:17 +08:00
|
|
|
# linux machines
|
|
|
|
# gcc
|
2016-02-25 22:26:52 +08:00
|
|
|
- os: linux
|
|
|
|
env: COMPILER=g++-4.9 LUA_VERSION=lua52
|
|
|
|
compiler: gcc
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2016-02-26 02:53:56 +08:00
|
|
|
- ubuntu-toolchain-r-test
|
2016-02-25 22:26:52 +08:00
|
|
|
packages:
|
|
|
|
- gcc-4.9
|
2016-02-26 02:53:56 +08:00
|
|
|
- g++-4.9
|
2016-02-25 22:26:52 +08:00
|
|
|
- ninja-build
|
|
|
|
- liblua5.2-dev
|
2017-12-12 03:14:31 +08:00
|
|
|
- python3
|
2016-02-25 22:26:52 +08:00
|
|
|
|
|
|
|
# gcc-5
|
|
|
|
- os: linux
|
|
|
|
env: COMPILER=g++-5 LUA_VERSION=lua52
|
|
|
|
compiler: gcc
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2016-02-26 02:53:56 +08:00
|
|
|
- ubuntu-toolchain-r-test
|
2016-02-25 22:26:52 +08:00
|
|
|
packages:
|
|
|
|
- gcc-5
|
|
|
|
- g++-5
|
2016-02-26 02:53:56 +08:00
|
|
|
- ninja-build
|
|
|
|
- liblua5.2-dev
|
2017-12-12 03:14:31 +08:00
|
|
|
- python3
|
2016-02-25 22:26:52 +08:00
|
|
|
|
|
|
|
# gcc-5
|
|
|
|
- os: linux
|
|
|
|
env: COMPILER=g++-5 LUA_VERSION=luajit51
|
|
|
|
compiler: gcc
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2016-02-26 02:53:56 +08:00
|
|
|
- ubuntu-toolchain-r-test
|
2016-02-25 22:26:52 +08:00
|
|
|
packages:
|
|
|
|
- gcc-5
|
|
|
|
- g++-5
|
2016-02-26 02:53:56 +08:00
|
|
|
- ninja-build
|
|
|
|
- libluajit-5.1-dev
|
|
|
|
|
2017-08-11 20:59:43 +08:00
|
|
|
# gcc-5:i386
|
|
|
|
- os: linux
|
|
|
|
env: COMPILER=g++-5 LUA_VERSION=luajit51:i386
|
|
|
|
compiler: gcc
|
|
|
|
install:
|
|
|
|
- sudo dpkg --add-architecture i386
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-5
|
|
|
|
- g++-5
|
|
|
|
- ninja-build
|
|
|
|
- libluajit-5.1-dev
|
|
|
|
- libluajit-5.1-dev:i386
|
|
|
|
- libc6:i386
|
|
|
|
- libncurses5:i386
|
|
|
|
- libstdc++6:i386
|
|
|
|
- gcc-5-multilib
|
|
|
|
- g++-5-multilib
|
|
|
|
- linux-libc-dev:i386
|
2017-12-12 03:14:31 +08:00
|
|
|
- python3
|
2017-08-11 20:59:43 +08:00
|
|
|
|
2016-02-27 01:23:22 +08:00
|
|
|
# clang
|
2016-02-26 02:53:56 +08:00
|
|
|
- os: linux
|
2016-06-10 05:27:01 +08:00
|
|
|
env:
|
2017-08-08 04:10:41 +08:00
|
|
|
- LUA_VERSION=lua52
|
|
|
|
- LLVM_VERSION=3.6.0
|
2016-06-10 05:27:01 +08:00
|
|
|
- LLVM_ARCHIVE_PATH=$HOME/clang+llvm.tar.xz
|
2016-06-10 06:20:42 +08:00
|
|
|
- COMPILER=clang++
|
2016-06-10 05:27:01 +08:00
|
|
|
- CPPFLAGS="-I $HOME/clang-$LLVM_VERSION/include/c++/v1"
|
|
|
|
- CXXFLAGS=-lc++
|
|
|
|
- PATH=$HOME/clang-$LLVM_VERSION/bin:$PATH
|
|
|
|
- LD_LIBRARY_PATH=$HOME/clang-$LLVM_VERSION/lib:$LD_LIBRARY_PATH
|
|
|
|
before_install:
|
|
|
|
- wget http://llvm.org/releases/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-14.04.tar.xz -O $LLVM_ARCHIVE_PATH
|
|
|
|
- mkdir $HOME/clang-$LLVM_VERSION
|
|
|
|
- tar xf $LLVM_ARCHIVE_PATH -C $HOME/clang-$LLVM_VERSION --strip-components 1
|
2016-06-11 09:31:39 +08:00
|
|
|
- export PATH=$HOME/clang+llvm/bin:$PATH
|
2017-12-24 09:34:34 +08:00
|
|
|
- source ./scripts/preparation.osx.sh
|
2016-02-26 02:53:56 +08:00
|
|
|
compiler: clang
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
2016-02-26 02:56:12 +08:00
|
|
|
- gcc-4.9
|
|
|
|
- g++-4.9
|
2016-02-26 02:53:56 +08:00
|
|
|
- ninja-build
|
|
|
|
- liblua5.2-dev
|
2017-12-12 03:14:31 +08:00
|
|
|
- python3
|
2016-02-25 22:26:52 +08:00
|
|
|
|
2017-08-08 04:10:41 +08:00
|
|
|
- os: linux
|
|
|
|
env:
|
2016-06-10 05:32:13 +08:00
|
|
|
- LUA_VERSION=lua52
|
2017-08-08 04:10:41 +08:00
|
|
|
- LLVM_VERSION=3.7.0
|
|
|
|
- LLVM_ARCHIVE_PATH=$HOME/clang+llvm.tar.xz
|
|
|
|
- COMPILER=clang++
|
|
|
|
- CPPFLAGS="-I $HOME/clang-$LLVM_VERSION/include/c++/v1"
|
|
|
|
- CXXFLAGS=-lc++
|
|
|
|
- PATH=$HOME/clang-$LLVM_VERSION/bin:$PATH
|
|
|
|
- LD_LIBRARY_PATH=$HOME/clang-$LLVM_VERSION/lib:$LD_LIBRARY_PATH
|
2016-06-10 05:32:13 +08:00
|
|
|
before_install:
|
|
|
|
- wget http://llvm.org/releases/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-14.04.tar.xz -O $LLVM_ARCHIVE_PATH
|
|
|
|
- mkdir $HOME/clang-$LLVM_VERSION
|
|
|
|
- tar xf $LLVM_ARCHIVE_PATH -C $HOME/clang-$LLVM_VERSION --strip-components 1
|
2016-06-11 09:31:39 +08:00
|
|
|
- export PATH=$HOME/clang+llvm/bin:$PATH
|
2017-12-24 09:34:34 +08:00
|
|
|
- source ./scripts/preparation.osx.sh
|
2016-02-25 22:26:52 +08:00
|
|
|
compiler: clang
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2016-02-26 02:53:56 +08:00
|
|
|
- ubuntu-toolchain-r-test
|
2016-02-25 22:26:52 +08:00
|
|
|
packages:
|
2016-06-11 09:37:49 +08:00
|
|
|
- gcc-4.9
|
|
|
|
- g++-4.9
|
2016-02-26 02:53:56 +08:00
|
|
|
- ninja-build
|
|
|
|
- liblua5.2-dev
|
2017-12-12 03:14:31 +08:00
|
|
|
- python3
|
2016-02-25 22:26:52 +08:00
|
|
|
|
|
|
|
- os: linux
|
2016-06-10 05:32:13 +08:00
|
|
|
env:
|
2017-08-08 04:10:41 +08:00
|
|
|
- LUA_VERSION=lua52
|
|
|
|
- LLVM_VERSION=3.8.0
|
2016-06-10 05:32:13 +08:00
|
|
|
- LLVM_ARCHIVE_PATH=$HOME/clang+llvm.tar.xz
|
2016-06-10 06:20:42 +08:00
|
|
|
- COMPILER=clang++
|
2016-06-10 05:32:13 +08:00
|
|
|
- CPPFLAGS="-I $HOME/clang-$LLVM_VERSION/include/c++/v1"
|
|
|
|
- CXXFLAGS=-lc++
|
|
|
|
- PATH=$HOME/clang-$LLVM_VERSION/bin:$PATH
|
|
|
|
- LD_LIBRARY_PATH=$HOME/clang-$LLVM_VERSION/lib:$LD_LIBRARY_PATH
|
|
|
|
before_install:
|
|
|
|
- wget http://llvm.org/releases/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-14.04.tar.xz -O $LLVM_ARCHIVE_PATH
|
|
|
|
- mkdir $HOME/clang-$LLVM_VERSION
|
|
|
|
- tar xf $LLVM_ARCHIVE_PATH -C $HOME/clang-$LLVM_VERSION --strip-components 1
|
2016-06-11 09:31:39 +08:00
|
|
|
- export PATH=$HOME/clang+llvm/bin:$PATH
|
2017-12-24 09:34:34 +08:00
|
|
|
- source ./scripts/preparation.osx.sh
|
2016-02-25 22:26:52 +08:00
|
|
|
compiler: clang
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2016-02-26 02:53:56 +08:00
|
|
|
- ubuntu-toolchain-r-test
|
2016-02-25 22:26:52 +08:00
|
|
|
packages:
|
2016-06-11 09:37:49 +08:00
|
|
|
- gcc-4.9
|
|
|
|
- g++-4.9
|
2016-02-26 03:55:15 +08:00
|
|
|
- ninja-build
|
2017-08-08 04:10:41 +08:00
|
|
|
- liblua5.2-dev
|
2017-12-12 03:14:31 +08:00
|
|
|
- python3
|
2017-08-08 04:10:41 +08:00
|
|
|
|
|
|
|
- os: linux
|
|
|
|
env:
|
|
|
|
- LUA_VERSION=lua52
|
|
|
|
- LLVM_VERSION=3.9.0
|
|
|
|
- LLVM_ARCHIVE_PATH=$HOME/clang+llvm.tar.xz
|
|
|
|
- COMPILER=clang++
|
|
|
|
- CPPFLAGS="-I $HOME/clang-$LLVM_VERSION/include/c++/v1"
|
|
|
|
- CXXFLAGS=-lc++
|
|
|
|
- PATH=$HOME/clang-$LLVM_VERSION/bin:$PATH
|
|
|
|
- LD_LIBRARY_PATH=$HOME/clang-$LLVM_VERSION/lib:$LD_LIBRARY_PATH
|
|
|
|
before_install:
|
|
|
|
- wget http://llvm.org/releases/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-14.04.tar.xz -O $LLVM_ARCHIVE_PATH
|
|
|
|
- mkdir $HOME/clang-$LLVM_VERSION
|
|
|
|
- tar xf $LLVM_ARCHIVE_PATH -C $HOME/clang-$LLVM_VERSION --strip-components 1
|
|
|
|
- export PATH=$HOME/clang+llvm/bin:$PATH
|
2017-12-24 09:34:34 +08:00
|
|
|
- source ./scripts/preparation.osx.sh
|
2017-08-08 04:10:41 +08:00
|
|
|
compiler: clang
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.9
|
|
|
|
- g++-4.9
|
|
|
|
- ninja-build
|
|
|
|
- liblua5.2-dev
|
2017-12-12 03:14:31 +08:00
|
|
|
- python3
|
2017-08-08 04:10:41 +08:00
|
|
|
|
2017-08-12 10:27:05 +08:00
|
|
|
- os: linux
|
|
|
|
env:
|
|
|
|
- LUA_VERSION=luajit51
|
|
|
|
- LLVM_VERSION=4.0.0
|
|
|
|
- LLVM_ARCHIVE_PATH=$HOME/clang+llvm.tar.xz
|
|
|
|
- COMPILER=clang++
|
|
|
|
- CPPFLAGS="-I $HOME/clang-$LLVM_VERSION/include/c++/v1"
|
|
|
|
- CXXFLAGS=-lc++
|
|
|
|
- PATH=$HOME/clang-$LLVM_VERSION/bin:$PATH
|
|
|
|
- LD_LIBRARY_PATH=$HOME/clang-$LLVM_VERSION/lib:$LD_LIBRARY_PATH
|
|
|
|
before_install:
|
|
|
|
- wget http://llvm.org/releases/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-14.04.tar.xz -O $LLVM_ARCHIVE_PATH
|
|
|
|
- mkdir $HOME/clang-$LLVM_VERSION
|
|
|
|
- tar xf $LLVM_ARCHIVE_PATH -C $HOME/clang-$LLVM_VERSION --strip-components 1
|
|
|
|
- export PATH=$HOME/clang+llvm/bin:$PATH
|
2017-12-24 09:34:34 +08:00
|
|
|
- source ./scripts/preparation.osx.sh
|
2017-08-12 11:05:19 +08:00
|
|
|
compiler: clang
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.9
|
|
|
|
- g++-4.9
|
|
|
|
- ninja-build
|
|
|
|
- libluajit-5.1-dev
|
2017-12-12 03:14:31 +08:00
|
|
|
- python3
|
2017-08-12 11:05:19 +08:00
|
|
|
|
2017-08-08 04:10:41 +08:00
|
|
|
- os: linux
|
|
|
|
env:
|
|
|
|
- LUA_VERSION=lua52
|
|
|
|
- LLVM_VERSION=4.0.0
|
|
|
|
- LLVM_ARCHIVE_PATH=$HOME/clang+llvm.tar.xz
|
|
|
|
- COMPILER=clang++
|
|
|
|
- CPPFLAGS="-I $HOME/clang-$LLVM_VERSION/include/c++/v1"
|
|
|
|
- CXXFLAGS=-lc++
|
|
|
|
- PATH=$HOME/clang-$LLVM_VERSION/bin:$PATH
|
|
|
|
- LD_LIBRARY_PATH=$HOME/clang-$LLVM_VERSION/lib:$LD_LIBRARY_PATH
|
|
|
|
before_install:
|
|
|
|
- wget http://llvm.org/releases/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-14.04.tar.xz -O $LLVM_ARCHIVE_PATH
|
|
|
|
- mkdir $HOME/clang-$LLVM_VERSION
|
|
|
|
- tar xf $LLVM_ARCHIVE_PATH -C $HOME/clang-$LLVM_VERSION --strip-components 1
|
|
|
|
- export PATH=$HOME/clang+llvm/bin:$PATH
|
2017-12-24 09:34:34 +08:00
|
|
|
- source ./scripts/preparation.osx.sh
|
2017-08-08 04:10:41 +08:00
|
|
|
compiler: clang
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-4.9
|
|
|
|
- g++-4.9
|
|
|
|
- ninja-build
|
|
|
|
- liblua5.2-dev
|
2017-12-12 03:14:31 +08:00
|
|
|
- python3
|
2017-08-08 04:13:45 +08:00
|
|
|
|
2016-02-27 01:23:22 +08:00
|
|
|
- os: osx
|
2017-04-03 11:33:35 +08:00
|
|
|
osx_image: xcode7.3
|
2016-02-27 01:23:22 +08:00
|
|
|
compiler: gcc
|
|
|
|
env: COMPILER=g++-4.9 LUA_VERSION=lua53
|
|
|
|
|
2017-08-12 11:08:57 +08:00
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode8.3
|
|
|
|
# compiler: gcc
|
|
|
|
# env: COMPILER=g++-5 LUA_VERSION=luajit
|
|
|
|
#
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode8.3
|
|
|
|
# compiler: gcc
|
|
|
|
# env: COMPILER=g++-5 LUA_VERSION=lua52
|
|
|
|
#
|
|
|
|
# - os: osx
|
|
|
|
# osx_image: xcode8.3
|
|
|
|
# compiler: gcc
|
|
|
|
# env: COMPILER=g++-5 LUA_VERSION=lua53
|
|
|
|
#
|
2017-04-03 10:37:01 +08:00
|
|
|
- os: osx
|
|
|
|
osx_image: xcode8.3
|
2016-02-27 01:23:22 +08:00
|
|
|
compiler: clang
|
|
|
|
env: COMPILER=appleclang LUA_VERSION=lua53
|
|
|
|
|
|
|
|
allow_failures:
|
|
|
|
- os: osx
|