evmc/circle.yml

82 lines
2.1 KiB
YAML
Raw Normal View History

2018-03-28 13:20:39 +00:00
version: 2
jobs:
build:
docker:
- image: ethereum/cpp-build-env
steps:
- checkout
- run:
name: "Configure"
working_directory: ~/build
2018-04-11 13:19:41 +00:00
command: cmake ../project -DCMAKE_INSTALL_PREFIX=~/install -DBUILD_SHARED_LIBS=ON -DEVMC_BUILD_EXAMPLES=ON -DEVMC_BUILD_TESTS=ON
2018-03-28 13:20:39 +00:00
- run:
name: "Build"
command: cmake --build ~/build
2018-04-11 10:55:01 +00:00
- run:
name: "Test"
command: cmake --build ~/build --target test
2018-04-11 13:19:41 +00:00
- run:
name: "Install"
command: cmake --build ~/build --target install
2018-04-18 14:32:24 +00:00
- run:
name: "Package"
command: |
cmake --build ~/build --target package
mkdir ~/package
mv ~/build/evmc-*.tar.gz ~/package
- store_artifacts:
path: ~/package
destination: package
2018-04-11 13:19:41 +00:00
- run:
name: "Run evmc-vmtester libevmc-examplevm.so"
command: ~/install/bin/evmc-vmtester ~/install/lib/libevmc-examplevm.so
2018-03-28 13:20:39 +00:00
2018-03-28 15:01:47 +00:00
test-docs:
2018-03-28 14:16:28 +00:00
docker:
- image: ethereum/cpp-build-env
steps:
- checkout
- run:
2018-03-28 15:01:47 +00:00
name: "Test documentation"
2018-03-28 14:16:28 +00:00
command: |
2018-03-28 20:17:41 +00:00
doxygen Doxyfile > doxygen.log 2> doxygen.warnings
2018-03-28 14:16:28 +00:00
if [ -s doxygen.warnings ]; then
printf '\n\nDoxygen warnings:\n\n'
cat doxygen.warnings
exit 1
fi
cat doxygen.log
2018-03-28 15:01:47 +00:00
upload-docs:
docker:
- image: ethereum/cpp-build-env
steps:
- checkout
- run:
name: "Generate documentation"
2018-03-28 20:17:41 +00:00
command: doxygen Doxyfile
2018-03-28 15:01:47 +00:00
- run:
name: "Upload documentation"
command: |
git config user.email "docs-bot@ethereum.org"
git config user.name "Documentation Bot"
2018-03-28 20:17:41 +00:00
git add --all
2018-03-28 15:01:47 +00:00
git commit -m "Update docs"
git push -f "https://$GITHUB_TOKEN@github.com/ethereum/evmc.git" HEAD:gh-pages
2018-03-28 13:20:39 +00:00
workflows:
version: 2
evmc:
jobs:
- build
2018-03-28 15:01:47 +00:00
- test-docs
- upload-docs:
requires:
- test-docs
filters:
branches:
only:
- master
- docs