Skip to content

Commit

Permalink
Merge pull request #14 from oatpp/better_ci
Browse files Browse the repository at this point in the history
better CI script
  • Loading branch information
lganzzzo authored Oct 11, 2020
2 parents 17d572e + 5859829 commit f1925c5
Showing 1 changed file with 69 additions and 7 deletions.
76 changes: 69 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,85 @@ jobs:
continueOnError: false
pool:
vmImage: 'Ubuntu 16.04'
container:
image: lganzzzo/ubuntu-cmake:latest
workspace:
clean: all
steps:
- script: |
sudo ./install-oatpp-modules.sh
displayName: 'install oatpp modules'
workingDirectory: utility
mkdir build
- script: |
git clone https://github.com/oatpp/oatpp
mkdir -p oatpp/build
displayName: 'Checkout - oatpp'
workingDirectory: build
- script: |
cmake -DOATPP_BUILD_TESTS=OFF ..
sudo make install
displayName: 'Build - oatpp'
workingDirectory: build/oatpp/build
- script: |
cmake ..
make
displayName: 'Build - Project'
workingDirectory: build
- script: |
make test ARGS="-V"
displayName: 'Test'
workingDirectory: build
- job: macOS
displayName: 'Build - macOS'
continueOnError: false
pool:
vmImage: 'macOS-10.14'
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 -DOATPP_BUILD_TESTS=OFF ..
sudo make install
displayName: 'Build - oatpp'
workingDirectory: build/oatpp/build
- script: |
cmake ..
sudo make
displayName: 'CMake'
make
displayName: 'Build - Project'
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 -DOATPP_BUILD_TESTS=OFF ..
cmake --build . --target INSTALL
displayName: 'Build - oatpp'
workingDirectory: build\oatpp\build
- script: |
cmake ..
cmake --build .
displayName: 'Build - Project'
workingDirectory: build
- script: |
my-project-test.exe
displayName: 'Test'
workingDirectory: build\Debug\

0 comments on commit f1925c5

Please sign in to comment.