2019-03-17 10:12:13 +00:00
|
|
|
version: 2.1
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
docker:
|
|
|
|
- image: circleci/buildpack-deps:bionic
|
|
|
|
steps:
|
|
|
|
- checkout
|
2019-03-17 10:26:22 +00:00
|
|
|
- run:
|
|
|
|
command: |
|
|
|
|
g++ --version
|
|
|
|
cd tests/
|
|
|
|
ls
|
|
|
|
g++ -std=c++11 -O2 -Wall -Wextra -Werror check.cpp -o check
|
|
|
|
git clone https://github.com/BurntSushi/toml-test.git
|
|
|
|
cp check toml-test/tests/invalid
|
|
|
|
cp check toml-test/tests/valid
|
|
|
|
cd toml-test/tests/invalid
|
|
|
|
for f in $(ls ./*.toml); do echo "==> ${f}"; cat ${f}; ./check ${f} invalid; done
|
|
|
|
cd ../valid
|
|
|
|
for f in $(ls ./*.toml); do echo "==> ${f}"; cat ${f}; ./check ${f} valid; done
|
2019-03-17 10:12:13 +00:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2.1
|
|
|
|
test:
|
|
|
|
jobs:
|
|
|
|
- test
|