mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 15:14:39 +00:00
Use OSX CI and Windows to test other toolchains
This commit is contained in:
parent
a2bd798920
commit
a91b11d203
50
.travis.yml
50
.travis.yml
@ -1,23 +1,31 @@
|
|||||||
sudo: false
|
matrix:
|
||||||
language: cpp
|
include:
|
||||||
compiler:
|
- os: linux
|
||||||
- gcc
|
dist: bionic
|
||||||
- clang
|
language: cpp
|
||||||
addons:
|
compiler: gcc
|
||||||
apt:
|
- os: osx
|
||||||
sources:
|
osx_image: xcode10.2
|
||||||
- ubuntu-toolchain-r-test
|
language: cpp
|
||||||
- llvm-toolchain-trusty-5.0
|
compiler: clang
|
||||||
packages:
|
- os: windows
|
||||||
- g++-7
|
language: bash
|
||||||
- clang-5.0
|
env: CXX=cl.exe
|
||||||
env:
|
|
||||||
- CXXFLAGS="-std=c++17"
|
|
||||||
install:
|
install:
|
||||||
- "[ $CXX = g++ ] && export CXX=g++-7 || true"
|
- |
|
||||||
- "[ $CXX = clang++ ] && export CXX=clang++-5.0 || true"
|
if [[ $TRAVIS_OS_NAME == 'windows' ]]; then
|
||||||
|
choco install ninja cmake
|
||||||
|
elif [[ $TRAVIS_OS_NAME == 'osx' ]]; then
|
||||||
|
export PATH=~/Library/Python/3.7/bin:$PATH
|
||||||
|
pip3 install --user ninja cmake
|
||||||
|
else
|
||||||
|
pip install --user ninja cmake
|
||||||
|
fi
|
||||||
script:
|
script:
|
||||||
- cd test
|
- |
|
||||||
- mkdir build && cd build
|
if [[ $TRAVIS_OS_NAME == 'windows' ]]; then
|
||||||
- cmake ../.
|
cmd.exe /C '"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" amd64 && cmake -Bbuild -G Ninja -DCMAKE_BUILD_TYPE=Release -DARGPARSE_BUILD_TESTS=ON && ninja -C build'
|
||||||
- make && ./tests
|
else
|
||||||
|
cmake -Bbuild -G Ninja -DCMAKE_BUILD_TYPE=Release -DARGPARSE_BUILD_TESTS=ON && ninja -C build
|
||||||
|
fi
|
||||||
|
- ./build/test/tests
|
||||||
|
Loading…
Reference in New Issue
Block a user