Skip to content

Commit

Permalink
Merge pull request #21 from bernedom/misc/deploying-stable-travis-lin…
Browse files Browse the repository at this point in the history
…ting

Misc/deploying stable travis linting
  • Loading branch information
bernedom authored Aug 28, 2019
2 parents eaa1a57 + 8e93976 commit 6662ede
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 63 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ build
build

# exclude generated documentation
doc/generated
doc/generated
__pycache
132 changes: 70 additions & 62 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,21 @@ language: cpp
dist: bionic
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- g++-7
- g++-8
- clang-5.0
- clang-6.0
- libstdc++-8-dev
- shunit2
- ninja-build
- python3
- python3-pip
- python3-setuptools
- cmake
- g++-7
- g++-8
- clang-5.0
- clang-6.0
- shunit2
- ninja-build
- python3
- python3-pip
- python3-setuptools
homebrew:
packages:
- ninja
- shunit2
- ninja
- shunit2
os: linux
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
Expand All @@ -28,55 +25,66 @@ env:
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
matrix:
include:
- os: windows
name: Windows Visual Studio 15 2017
script:
- cmake --version
- mkdir build && cd build && cmake .. -G "Visual Studio 15 2017" -A x64
- cmake --build . --config Debug
- ctest -C Debug

- os: osx
osx_image: xcode10.2
compiler: clang
env:
- MATRIX_EVAL=""

- os: linux
name: installation tests
env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
before_script:
- pip3 install conan
script:
- "./test/installation-tests.sh"
- os: linux
name: compilation tests
env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
script:
- "./test/compilation-tests.sh"

- stage: deploy-unstable
os: linux
env: MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
before_script:
- pip3 install conan
script:
- conan remote add bernedom https://api.bintray.com/conan/bernedom/conan
- conan create . SI/unstable
- conan upload SI/*@SI/unstable --all -c -r bernedom
- os: windows
name: Windows Visual Studio 15 2017
script:
- cmake --version
- mkdir build && cd build && cmake .. -G "Visual Studio 15 2017" -A x64
- cmake --build . --config Debug
- ctest -C Debug

- os: osx
osx_image: xcode10.2
compiler: clang
env:
- MATRIX_EVAL=""

- os: linux
name: installation tests
env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
before_script:
- pip3 install conan
script:
- "./test/installation-tests.sh"
- os: linux
name: compilation tests
env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
script:
- "./test/compilation-tests.sh"

- stage: deploy-unstable
os: linux
env: MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
before_script:
- pip3 install conan
script:
- conan remote add bernedom https://api.bintray.com/conan/bernedom/conan
- conan create . SI/unstable
- conan upload SI/*@SI/unstable --all -c -r bernedom

- stage: deploy-stable
os: linux
env: MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
before_script:
- pip3 install conan
script:
- conan remote add bernedom https://api.bintray.com/conan/bernedom/conan
- conan create . SI/stable
- conan upload SI/*@SI/stable --all -c -r bernedom

before_install:
- eval "${MATRIX_EVAL}"
- eval "${MATRIX_EVAL}"
script:
- cmake --version
- mkdir build && cd build && cmake .. -G Ninja
- cmake --build . --config Debug
- ctest -C Debug

- cmake --version
- mkdir build && cd build && cmake .. -G Ninja
- cmake --build . --config Debug
- ctest -C Debug

stages:
- Test
- name: deploy-unstable
if: branch = master AND type NOT IN (pull_request)
- Test
- name: deploy-unstable
if: branch = master AND type NOT IN (pull_request) AND tag IS NOT present
- name: deploy-stable
if: type NOT IN (pull_request) AND tag IS present AND tag ~= /^[0-9]+\.[0-9]+\.[0-9]+$/

0 comments on commit 6662ede

Please sign in to comment.