sagecal/.travis.yml

48 lines
1.3 KiB
YAML
Raw Normal View History

2018-03-01 23:19:45 +08:00
sudo: required
services:
- docker
language: cpp
#matrix:
# include:
# # works on Precise and Trusty
# - os: linux
# dist: xenial
# addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# packages:
# - g++-4.9
# - cmake
env:
- CC=gcc-4.9
- CXX=g++-4.9"
- CMAKE_CXX_COMPILER=g++-4.9
- CMAKE_BUILD_TYPE=Release
before_install:
- docker pull ubuntu:xenial
- docker run -itd --name ubuntu-build ubuntu:xenial
script:
2018-03-01 23:32:40 +08:00
- docker exec ubuntu-build apt-get install software-properties-common -y
2018-03-01 23:19:45 +08:00
- docker exec ubuntu-build add-apt-repository -s ppa:kernsuite/kern-3 -y
- docker exec ubuntu-build apt-add-repository multiverse
2018-03-01 23:32:40 +08:00
- docker exec ubuntu-build apt-get -qq update && apt-get install -y git cmake g++ pkg-config libcfitsio-bin libcfitsio-dev libopenblas-base libopenblas-dev wcslib-dev wcslib-tools libglib2.0-dev libcasa-casa2 casacore-dev casacore-data casacore-tools
2018-03-01 23:28:12 +08:00
- |
docker exec ubuntu-build \
2018-03-01 23:19:45 +08:00
echo "Building SageCal" && \
cd $TRAVIS_HOME && \
git clone -b sprint_cmake https://github.com/nlesc-dirac/sagecal.git && \
cd sagecal && \
mkdir build && cd build && \
cmake .. -DENABLE_CUDA=OFF && \
make -j4 && \
#cd $TRAVIS_BUILD_DIR && \
ls -alsrt ./dist/bin && \
./dist/bin/sagecal
2018-03-01 23:28:12 +08:00