oatpp-swagger/azure-pipelines.yml

99 lines
2.4 KiB
YAML
Raw Permalink Normal View History

2019-01-27 06:48:59 +08:00
# 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_20_04
displayName: 'Build - Ubuntu 20.04'
2019-01-27 19:23:15 +08:00
continueOnError: false
pool:
vmImage: 'ubuntu-20.04'
2019-01-27 19:23:15 +08:00
workspace:
clean: all
2019-01-27 19:21:12 +08:00
steps:
- script: |
mkdir build
- script: |
2019-08-12 08:25:29 +08:00
git clone https://github.com/oatpp/oatpp
mkdir -p oatpp/build
displayName: 'Checkout - oatpp'
workingDirectory: build
- script: |
cmake ..
sudo make install
displayName: 'Build - oatpp'
workingDirectory: build/oatpp/build
- script: |
cmake ..
2019-01-27 19:21:12 +08:00
make
2019-08-12 08:25:29 +08:00
displayName: 'Build - module'
2019-01-27 19:21:12 +08:00
workingDirectory: build
- script: |
make test ARGS="-V"
displayName: 'Test'
workingDirectory: build
2019-01-27 19:23:15 +08:00
2019-08-12 08:25:29 +08:00
- job: macOS
2020-03-25 02:43:29 +08:00
displayName: 'Build - macOS'
2019-08-12 08:25:29 +08:00
continueOnError: false
pool:
2021-12-15 08:47:23 +08:00
vmImage: 'macOS-latest'
2019-08-12 08:25:29 +08:00
workspace:
clean: all
steps:
- script: |
mkdir build
- script: |
git clone https://github.com/oatpp/oatpp
mkdir -p oatpp/build
displayName: 'Checkout - oatpp'
workingDirectory: build
- script: |
cmake ..
sudo make install
displayName: 'Build - oatpp'
workingDirectory: build/oatpp/build
- script: |
cmake ..
make
displayName: 'Build - module'
workingDirectory: build
- script: |
make test ARGS="-V"
displayName: 'Test'
workingDirectory: build
- job: windows
displayName: 'Build - Windows'
continueOnError: false
pool:
vmImage: 'windows-latest'
workspace:
clean: all
steps:
- script: |
MD build
- script: |
git clone https://github.com/oatpp/oatpp
MD oatpp\build
displayName: 'Checkout - oatpp'
workingDirectory: build
- script: |
cmake ..
cmake --build . --target INSTALL
displayName: 'Build - oatpp'
workingDirectory: build\oatpp\build
- script: |
cmake ..
cmake --build .
displayName: 'Build - module'
workingDirectory: build
- script: |
module-tests.exe
displayName: 'Test'
workingDirectory: build\test\Debug\