sagecal/.travis.yml

29 lines
1.1 KiB
YAML
Raw Normal View History

2018-03-01 23:19:45 +08:00
sudo: required
services:
- docker
language: cpp
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
2018-03-02 00:50:01 +08:00
- docker run -itd -v "${TRAVIS_BUILD_DIR}:/travis/workdir" --name ubuntu-build ubuntu:xenial
2018-03-01 23:19:45 +08:00
script:
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
- docker exec ubuntu-build apt-get update -y
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
- docker exec ubuntu-build apt-get update -y
- docker exec ubuntu-build 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
- |
2018-03-02 00:53:41 +08:00
docker exec --env BRANCH=$BRANCH ubuntu-build /bin/bash -c "/travis/workdir/test-builds/test-ubuntu.sh"
2018-03-01 23:28:12 +08:00