forked from ddemidov/amgcl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (40 loc) · 1.61 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
43
language: cpp
compiler:
- clang
env:
global:
- secure: "Hl9sa1V5YSJDYOSr9wnw109Vvm27FVTIZC5gIEiNOwdsqdzsO2JTtnk/tLmhStUvyPfJ5Vv8lxc52KFBV1DNDLIT88hxdZ8yRdg1FClVY+B30IfSjO9nKfgNtpGBozBJOfUbOZJwMxsGOdjGDq0dn667E8WcljBLeywRyxjRFvY="
addons:
coverity_scan:
project:
name: "ddemidov/amgcl"
description: "Build submitted via Travis CI"
notification_email: dennis.demidov@gmail.com
build_command_prepend: mkdir build-coverity && cd build-coverity && cmake -DCMAKE_BUILD_TYPE=Release ..
build_command: make
branch_pattern: master
before_install:
- sudo add-apt-repository ppa:boost-latest/ppa -y
- sudo apt-get update -qq
- sudo apt-get install -qq libboost-chrono1.55-dev libboost-date-time1.55-dev libboost-system1.55-dev
libboost-filesystem1.55-dev libboost-program-options1.55-dev libboost-python1.55-dev
libboost-test1.55-dev python-yaml lcov openmpi-bin libopenmpi-dev python-numpy-dev
python-scipy
script:
- mkdir -p build && cd build
- cmake -DTEST_COVERAGE=ON -DCMAKE_BUILD_TYPE=Release ..
- make
- ctest --output-on-failure
- for n in 1 4 16; do echo --- $n ---; mpirun -np $n ./examples/mpi/runtime_sdd; done
after_success:
- lcov --directory tests --base-directory ../amgcl --capture --output-file coverage.info
- lcov --remove coverage.info '/usr*' -o coverage.info
- bash <(curl -s https://codecov.io/bash)
deploy:
provider: pypi
user: Denis.Demidov
password:
secure: kGRaOaE3EMvkl+WUOeJuyqBA7yJo0+dLrxBEvK4pMF8VQzaDpZGdzdfVyVs5hMDilMp3GTKIpi078gkCXN6l9Zh95Y864fCbYMsOFCPpPBSn5pEOSTkhOCSujYPJzz5qdHzBpD4/aKPS7a91c1Hf+N3fnmWhIqX3x9zpQAKXegg=
on:
tags: true
all_branches: true