Skip to content
Merged
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
61 changes: 28 additions & 33 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,43 @@
dist: xenial
sudo: required
dist: xenial
sudo: required

language: cpp

os:
- linux
- osx
- linux
- osx
# - windows

compiler:
- gcc
- clang
- gcc
- clang

env:
# список переменных окружения, влияющих на матрицу сборки:
- TARGET_CPU=amd64 BUILD_CONFIGURATION=Debug
- TARGET_CPU=amd64 BUILD_CONFIGURATION=Release
- TARGET_CPU=x86 BUILD_CONFIGURATION=Debug
- TARGET_CPU=x86 BUILD_CONFIGURATION=Release
- TARGET_CPU=amd64 BUILD_CONFIGURATION=Debug
- TARGET_CPU=amd64 BUILD_CONFIGURATION=Release
- TARGET_CPU=x86 BUILD_CONFIGURATION=Debug
- TARGET_CPU=x86 BUILD_CONFIGURATION=Release

matrix:
exclude:
# вручную исключим ненужные элементы из матрицы сборки:
- os: osx
compiler: gcc
exclude:
- os: osx
compiler: gcc

- os: osx
env: TARGET_CPU=x86 BUILD_CONFIGURATION=Debug
# - os: windows
# compiler: gcc

- os: osx
env: TARGET_CPU=x86 BUILD_CONFIGURATION=Release
- os: osx
env: TARGET_CPU=x86 BUILD_CONFIGURATION=Debug

- os: osx
env: TARGET_CPU=x86 BUILD_CONFIGURATION=Release


script:
- cmake --version
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION -DTARGET_CPU=$TARGET_CPU
- cmake --build .
- ctest -C Debug
- ctest -C Release


after_script:
- uname --all
- env
- pwd
- ls -la
- cmake --version
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION -DTARGET_CPU=$TARGET_CPU
- cmake --build .
- ctest -C Debug
- ctest -C Release
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# algo
[![Build Status](https://travis-ci.com/powercoderlol/algorithm.svg?token=1bPTpQtaEq3CXYHz2PuT&branch=master)](https://travis-ci.com/powercoderlol/algorithm)

| Windows | Linux |
:---------:|:-------------:|
|[![Build status](https://ci.appveyor.com/api/projects/status/m8g24krgjeh2x2ud/branch/master?svg=true)](https://ci.appveyor.com/project/powercoderlol/algorithm/branch/master)|[![Build Status](https://travis-ci.com/powercoderlol/algorithm.svg?token=1bPTpQtaEq3CXYHz2PuT&branch=master)](https://travis-ci.com/powercoderlol/algorithm)|

Algorithms
- /algorithms_on_strings/longest_common_substring/LongestSubstring.h - find longest common substring in two strings :)
Expand Down
18 changes: 18 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 1.0.{build}

platform:
- x64

environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CMAKE_GENERATOR: -G"Visual Studio 14 2015 Win64"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: -G"Visual Studio 15 2017 Win64"

build_script:
- mkdir build
- cd build
- cmake %CMAKE_GENERATOR% ../
- cmake --build . --config Release
- ctest -C Release