mirror of
https://github.com/oatpp/oatpp.git
synced 2024-11-27 08:30:07 +08:00
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
# Starter pipeline
|
|
# Start with a minimal pipeline that you can customize to build and deploy your code.
|
|
# Add steps that build, run tests, deploy, and more:
|
|
# https://aka.ms/yaml
|
|
|
|
jobs:
|
|
- job: ubuntu_16_04
|
|
displayName: 'Build - Ubuntu 16.04'
|
|
continueOnError: false
|
|
pool:
|
|
vmImage: 'Ubuntu 16.04'
|
|
workspace:
|
|
clean: all
|
|
steps:
|
|
- script: |
|
|
mkdir oatpp
|
|
mv `ls -A | grep -v oatpp` ./oatpp/
|
|
- task: CMake@1
|
|
- script: |
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DOATPP_INSTALL=OFF -DOATPP_BUILD_TESTS=ON
|
|
make
|
|
displayName: 'CMake'
|
|
workingDirectory: oatpp
|
|
|
|
- script: |
|
|
make test ARGS="-V"
|
|
displayName: 'Test'
|
|
workingDirectory: oatpp
|
|
|
|
- job: macOS
|
|
displayName: 'Build - macOS-10.13'
|
|
continueOnError: false
|
|
pool:
|
|
vmImage: 'macOS-10.13'
|
|
workspace:
|
|
clean: all
|
|
steps:
|
|
- script: |
|
|
mkdir oatpp
|
|
mv `ls -A | grep -v oatpp` ./oatpp/
|
|
- task: CMake@1
|
|
- script: |
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DOATPP_INSTALL=OFF -DOATPP_BUILD_TESTS=ON
|
|
make
|
|
displayName: 'CMake'
|
|
workingDirectory: oatpp
|
|
|
|
- script: |
|
|
make test ARGS="-V"
|
|
displayName: 'Test'
|
|
workingDirectory: oatpp
|
|
|