aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: d625d97962fc9202bfa8a056cf8e087d2a09d3c4 (plain)
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: c

os:
 - linux
 - linux-ppc64le

cache: ccache

env:
    matrix:
    - RUN_ON_CONTAINER=ubuntu-16.04
    - RUN_ON_CONTAINER=ubuntu-18.04
    - RUN_ON_CONTAINER=ubuntu-latest
    - RUN_ON_CONTAINER=centos7
    - RUN_ON_CONTAINER=fedora29
    - RUN_ON_CONTAINER=fedora30
    - RUN_ON_CONTAINER=fedora-rawhide
    - RUN_ON_CONTAINER=debian-stretch
    - RUN_ON_CONTAINER=debian-unstable
    global:
        # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
        #   via the "travis encrypt" command using the project repo's public key
        secure: "MpNEGFa1VrF/vsQq24n5UgfRbz1wVC6B8mubFnyK4gX0IuQ9xhWuTzMLUQF9UJxe5jnC2DTmVUvYTYN/hggw+PpYwbOOAE0QGR5pmPHA4PSRmc5pxt1q18/sv7EPFw66GFyWJq94nWjpigyKQ8KGtA67j1xFqrDoS43OA76WZgo="

matrix:
  allow_failures:
    - env: RUN_ON_CONTAINER=fedora-rawhide
    - env: RUN_ON_CONTAINER=debian-unstable
    - os: linux-ppc64le
      env: RUN_ON_CONTAINER=fedora30
  exclude:
    - os: linux-ppc64le
      env: RUN_ON_CONTAINER=centos7


sudo: required
services: docker

dist: trusty

script:
    - docker build --pull -t ${RUN_ON_CONTAINER} -f opal-ci/Dockerfile-${RUN_ON_CONTAINER} . &&
      docker run --volume $HOME/.ccache:/root/.ccache --volume `pwd`:/build --rm -t $RUN_ON_CONTAINER bash -c "./opal-ci/build-${RUN_ON_CONTAINER}.sh";