forked from fplll/fplll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
157 lines (157 loc) · 4.4 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
sudo: required
dist: trusty
language: cpp
cache: ccache
env:
global:
- MAKEFLAGS="-j 4"
matrix:
include:
- stage: checkstyle
name: checkstyle
os: linux
env: COMPILER=g++-6 CLANGFORMAT=clang-format-6.0
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- libgmp-dev
- libmpfr-dev
- libqd-dev
before_install:
- sudo add-apt-repository 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0
main'
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install -qq -y clang-format-6.0
script:
- echo "make check-style done"
- stage: compile
os: linux
compiler: gcc
env: COMPILER=g++-4.8 CLANGFORMAT=clang-format-3.9
addons:
apt:
packages:
- g++-4.8
- libgmp-dev
- libmpfr-dev
- libqd-dev
before_install:
- sudo add-apt-repository 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9
main'
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install -qq -y clang-format-3.9
- os: linux
compiler: gcc
env: COMPILER=g++-4.9 CLANGFORMAT=clang-format-6.0 CPPFLAGS="-DDEBUG"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- libgmp-dev
- libmpfr-dev
- libqd-dev
before_install:
- sudo add-apt-repository 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0
main'
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install -qq -y clang-format-6.0
- os: linux
compiler: gcc
env: COMPILER=g++-5 CLANGFORMAT=clang-format-6.0
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- libgmp-dev
- libmpfr-dev
- libqd-dev
before_install:
- sudo add-apt-repository 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0
main'
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install -qq -y clang-format-6.0
- os: linux
compiler: gcc
env: COMPILER=g++-6 CLANGFORMAT=clang-format-6.0 CXXFLAGS="-O3 -ggdb -fprofile-arcs
-ftest-coverage"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- libgmp-dev
- libmpfr-dev
- libqd-dev
before_install:
- sudo add-apt-repository 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0
main'
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install -qq -y clang-format-6.0
script:
- make
- make check
- cd fplll && gcov --object-directory .libs *.cpp && cd ..
- make distcheck
after_success:
- bash <(curl -s https://codecov.io/bash)
- os: linux
compiler: clang
env: COMPILER=clang++ CLANGFORMAT=clang-format-3.9
addons:
apt:
packages:
- libgmp-dev
- libmpfr-dev
- libqd-dev
before_install:
- sudo add-apt-repository 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9
main'
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install -qq -y clang-format-3.9
- os: osx
compiler: clang
env: COMPILER=clang++ CLANGFORMAT=clang-format
before_install:
- brew update
- brew reinstall gmp
- brew install autoconf clang-format ccache
- export PATH="/usr/local/opt/ccache/libexec:$PATH"
install:
- export CXX="$COMPILER"
- "$CXX --version"
before_script:
- "./autogen.sh"
- "./configure --disable-static --with-max-enumeration-dimension=64 --with-max-parallel-enum-dim=20"
- bash .travis-check-style.sh
script:
- make
- make check
- make distcheck
notifications:
on_success: change
on_failure: always
deploy:
provider: releases
file_glob: true
skip_cleanup: true
api_key:
secure: fKFa3ALGSIWZMOerK2ruJpbaFcITuWAWVYSL1Tn9LphUvOiTJIrUztaQw19372U8Der+dVhgVtmwBSWuwxYPmHUFKfsRPuLnizxwD7sRDUkZ6RgHhybRJQcl/y9e93kqxkcwzxHGvx3GmZfL24acLxl4elDHWe84YbfXvkI6N+I=
file: fplll-*.tar.gz
on:
repo: fplll/fplll
tags: true
all_branches: true