24 lines
1.0 KiB
YAML
24 lines
1.0 KiB
YAML
sudo: required
|
|
services:
|
|
- docker
|
|
language: cpp
|
|
|
|
#env:
|
|
|
|
before_install:
|
|
- docker pull ubuntu:xenial
|
|
- docker run -itd -v "${TRAVIS_BUILD_DIR}:/travis/workdir" --name ubuntu-build ubuntu:xenial
|
|
|
|
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
|
|
- docker exec ubuntu-build apt-get install software-properties-common -y
|
|
- 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
|
|
- |
|
|
docker exec --env BRANCH=$BRANCH ubuntu-build /bin/bash -c "/travis/workdir/test-builds/test-ubuntu.sh"
|
|
|