aboutsummaryrefslogtreecommitdiffstats
path: root/circle.yml
blob: dc813aa99a0d20c9be7b5fdbd2e7ed6ad52d9ef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
dependencies:
    pre:
      - sudo apt-get update -qq
      - sudo apt-get install -qq cmake gcc lcov libevent-dev libglib2.0-dev libgmime-2.6-dev libluajit-5.1-dev liblua5.1-0-dev libmagic-dev libpcre3-dev libsqlite3-dev libssl-dev make python-dev ragel redis-server
      - gem install coveralls-lcov
      - sudo pip install demjson psutil robotframework

test:
  override:
    - cmake . -DENABLE_COVERAGE=ON -DCMAKE_INSTALL_PREFIX=./_install
    - cmake --build . --target install
    - sudo robot test/functional/cases
    - lcov -b . -d . -c --output-file coverage.info
    - ln -s src/ragel .
    - if [ ! -z $COVERALLS_REPO_TOKEN ]; then coveralls-lcov -t ${COVERALLS_REPO_TOKEN} coverage.info; fi
  post:
    - for i in output.xml log.html report.html; do mv $i $CIRCLE_ARTIFACTS; done