Skip to content

Commit c1637f4

Browse files
committed
Set up Travis & Codecov
1 parent c8efe66 commit c1637f4

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

.codecov.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
coverage:
2+
precision: 2
3+
round: down
4+
range: "70...100"
5+
6+
status:
7+
project: no
8+
patch: yes
9+
changes: no
10+
11+
comment:
12+
layout: "header, diff, changes, tree"
13+
behavior: default
14+
15+
ignore:
16+
- "PackageInfo.g"
17+
- "init.g"
18+
- "read.g"
19+
- "tst/*" # ignore test harness code
20+
- "tst/**/*" # ignore test harness code

.release

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
# This file is executed by the `release` script from
3+
# https://github.com/gap-system/ReleaseTools
4+
rm -rf .travis.yml .codecov.yml

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
language: c
2+
env:
3+
global:
4+
- GAPROOT=gaproot
5+
- COVDIR=coverage
6+
7+
addons:
8+
apt_packages:
9+
- libgmp-dev
10+
- libreadline-dev
11+
- zlib1g-dev
12+
13+
matrix:
14+
include:
15+
- env: GAPBRANCH="master"
16+
- env: GAPBRANCH="stable-4.10"
17+
- env: GAPBRANCH="stable-4.9"
18+
19+
branches:
20+
only:
21+
- master
22+
23+
before_script:
24+
- export GAPROOT="$HOME/gap"
25+
- git clone https://github.com/gap-system/pkg-ci-scripts.git scripts
26+
- scripts/build_gap.sh
27+
script:
28+
- scripts/build_pkg.sh && scripts/run_tests.sh
29+
after_script:
30+
- bash scripts/gather-coverage.sh
31+
- bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)