This commit is contained in:
Benjamin Sergeant
2019-05-13 10:29:49 -07:00
parent 6bb00b6788
commit 61dd5437a0
2 changed files with 20 additions and 30 deletions

View File

@ -1,17 +1,9 @@
language: cpp language: bash
dist: xenial
compiler:
- gcc
- clang
os:
- linux
- osx
matrix: matrix:
exclude: include:
# GCC fails on recent Travis OSX images. - os: windows
- compiler: gcc env:
os: osx - CMAKE_PATH="/c/Program Files/CMake/bin"
script:
script: python test/run.py - export PATH=$CMAKE_PATH:$PATH
- python test/run.py

View File

@ -1,24 +1,22 @@
# Build time FROM fedora:30 as build
FROM ubuntu:xenial as build
ENV DEBIAN_FRONTEND noninteractive RUN yum install -y gcc-g++
RUN apt-get update RUN yum install -y cmake
RUN apt-get -y install wget RUN yum install -y make
RUN yum install -y openssl-devel
RUN yum install -y wget
RUN mkdir -p /tmp/cmake RUN mkdir -p /tmp/cmake
WORKDIR /tmp/cmake WORKDIR /tmp/cmake
RUN wget https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-Linux-x86_64.tar.gz RUN wget https://github.com/Kitware/CMake/releases/download/v3.14.0/cmake-3.14.0-Linux-x86_64.tar.gz
RUN tar zxf cmake-3.14.0-Linux-x86_64.tar.gz RUN tar zxf cmake-3.14.0-Linux-x86_64.tar.gz
RUN apt-get -y install g++
RUN apt-get -y install libssl-dev
RUN apt-get -y install libz-dev
RUN apt-get -y install make
RUN apt-get -y install python
COPY . .
ARG CMAKE_BIN_PATH=/tmp/cmake/cmake-3.14.0-Linux-x86_64/bin ARG CMAKE_BIN_PATH=/tmp/cmake/cmake-3.14.0-Linux-x86_64/bin
ENV PATH="${CMAKE_BIN_PATH}:${PATH}" ENV PATH="${CMAKE_BIN_PATH}:${PATH}"
# RUN ["make"] RUN yum install -y python
RUN yum install -y libtsan
COPY . .
RUN ["make", "test"] RUN ["make", "test"]
# RUN ["make"]