-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
30 lines (30 loc) · 931 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
language: c
sudo: 'required'
services:
- 'docker'
compiler:
- clang
- gcc
notifications:
email:
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libmilter-dev libspf2-dev libspf2-2 opendkim-tools lcov
- gem install coveralls-lcov
script:
- make
- make coverage
- make test
after_success:
- lcov --directory . --capture --output-file coverage.info
- lcov --remove coverage.info 'tests/*' 'usr/*' --output-file coverage.info
- lcov --list coverage.info
- coveralls-lcov --repo-token ${COVERALLS_TOKEN} coverage.info
- bash <(curl -s https://codecov.io/bash)
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then
echo "$DOCKER_PASSWORD" | docker login -u $DOCKER_USERNAME --password-stdin;
export TAG=`grep "define VERSION" smf-spf.c | cut -d\" -f2` ;
docker build . --tag my-image-name:$TAG ;
docker push underspell/smf-spf ;
fi