aboutsummaryrefslogtreecommitdiffstats
path: root/circle.yml
blob: dff1f1d2a9bb8fb7851cfe85d052b8b2bab7ece2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
dependencies:
    pre:
      - sudo apt-get update -qq || true
      - 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
      - wget http://download.redis.io/redis-stable.tar.gz
      - tar xvzf redis-stable.tar.gz
      - cd redis-stable && make && sudo cp src/redis-cli /usr/bin/

test:
  override:
    - mkdir ../build ; mkdir ../install ; cd ../build
    - cmake ../rspamd -DDBDIR=/nana -DENABLE_COVERAGE=ON -DCMAKE_INSTALL_PREFIX=../install
    - make install
    - RSPAMADM=../install/bin/rspamadm RSPAMC=../install/bin/rspamc RSPAMD=../install/bin/rspamd sudo -E robot -x xunit.xml ../rspamd/test/functional/cases
    - lcov --no-external -b ../rspamd -d ../rspamd -c --output-file coverage.info
    - ln -s ../rspamd/src/ragel ../rspamd
    - 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
    - mkdir -p $CIRCLE_TEST_REPORTS/rspamd ; mv xunit.xml $CIRCLE_TEST_REPORTS/rspamd