forked from geodynamics/pythia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (43 loc) · 1.59 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
# Travis-CI configuration
dist: bionic
services:
- docker
language: cpp
jobs:
include:
- name: debian-stable
os: linux
env: BASE_IMAGE=testenv-debian-stable TEST_COVERAGE=yes PYTHON_COVERAGE=python3-coverage
- name: debian-testing
os: linux
env: BASE_IMAGE=testenv-debian-testing TEST_COVERAGE=yes PYTHON_COVERAGE=python3-coverage
- name: ubuntu-18.04
os: linux
env: BASE_IMAGE=testenv-ubuntu-18.04 TEST_COVERAGE=yes PYTHON_COVERAGE=python3-coverage
- name: ubuntu-20.04
os: linux
env: BASE_IMAGE=testenv-ubuntu-20.04 TEST_COVERAGE=yes PYTHON_COVERAGE=python3-coverage
- name: ubuntu-20.10
os: linux
env: BASE_IMAGE=testenv-ubuntu-20.10 TEST_COVERAGE=yes PYTHON_COVERAGE=python3-coverage
- name: fedora-32
os: linux
env: BASE_IMAGE=testenv-fedora-32 TEST_COVERAGE=yes PYTHON_COVERAGE=coverage3
- name: fedora-33
os: linux
env: BASE_IMAGE=testenv-fedora-33 TEST_COVERAGE=yes PYTHON_COVERAGE=coverage3
- name: centos-8
os: linux
env: BASE_IMAGE=testenv-centos-8
addons:
apt:
packages:
- docker-ce
# Limit number of commits in cloning (but keep enough so that 'git describe' works)
git:
depth: 100
install:
- docker build -t pythia-testenv --build-arg BASE_IMAGE=registry.gitlab.com/cig-pylith/pythia/$BASE_IMAGE --build-arg TEST_COVERAGE=$TEST_COVERAGE --build-arg PYTHON_COVERAGE=$PYTHON_COVERAGE --target build -f docker/pythia-testenv .
script:
- ci_env=`bash <(curl -s https://codecov.io/env)`
- docker run $ci_env pythia-testenv ci-config/run_test_coverage.sh