Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
language: c++
compiler: gcc

os: linux
dist: trusty
sudo: false

notifications:
email: false

addons:
apt:
sources:
- sourceline: 'deb http://pl.archive.ubuntu.com/ubuntu xenial main universe'
- sourceline: 'deb http://pl.archive.ubuntu.com/ubuntu xenial main'
packages:
- g++
- libsdl2-dev
artifacts:
paths:
- $(ls *.gz | tr "\n" :)

matrix:
include:
- env:
- BUILD_TYPE=Release
- ENABLE_UI=1
- env:
- BUILD_TYPE=Debug
- ENABLE_UI=1

before_script:
- pushd $HOME
- git clone https://github.com/openbw/openbw
- popd
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DOPENBW_DIR=$HOME/openbw -DOPENBW_ENABLE_UI=$ENABLE_UI

script:
- cmake --build . -- -j4 package
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.1)
project(BWAPI)
project(BWAPI VERSION 4.1.12)

set(CMAKE_DISABLE_SOURCE_CHANGES ON)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
Expand All @@ -18,3 +18,9 @@ if (MSVC)
endif()

add_subdirectory(bwapi)

# Package

set(CPACK_GENERATOR "TGZ")
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
include(CPack)