Browse Source

Travis CI builds moved to docker (#93).

main
offa 7 years ago
parent
commit
507a3b6c30
1 changed files with 14 additions and 25 deletions
  1. +14
    -25
      .travis.yml

+ 14
- 25
.travis.yml View File

dist: trusty dist: trusty
sudo: required sudo: required


services:
- docker

env: env:
global: global:
- DEPENDENCY_DIR="${TRAVIS_BUILD_DIR}/dependencies"

cache:
directories:
- ${DEPENDENCY_DIR}
- DOCKER_IMG="registry.gitlab.com/offa/docker-images"




matrix: matrix:
include: include:
- env: CXX=g++-7 CC=gcc-7
addons:
apt:
packages:
- g++-7
sources: &sources
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty
- llvm-toolchain-trusty-5.0
- env: CXX=clang++-5.0 CC=clang-5.0
addons:
apt:
packages:
- clang-5.0
sources: *sources


install:
- script/ci_install.sh
- env: CC=gcc-7
- env: CC=gcc-6
- env: CC=clang-5
- env: CC=clang-4


before_install:
- docker pull ${DOCKER_IMG}/${CC}:latest
- docker images


script: script:
- script/ci_build.sh
- docker run -v ${PWD}:/mnt -it ${DOCKER_IMG}/${CC} /bin/bash -c "cd /mnt; script/ci_build.sh"



Loading…
Cancel
Save