2018-03-01 23:19:45 +08:00
|
|
|
sudo: required
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
language: cpp
|
|
|
|
|
2018-03-02 00:59:49 +08:00
|
|
|
#env:
|
2018-03-01 23:19:45 +08:00
|
|
|
|
|
|
|
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-04-04 23:46:35 +08:00
|
|
|
- docker pull base/archlinux
|
|
|
|
- docker run -itd -v "${TRAVIS_BUILD_DIR}:/travis/workdir" --name arch-build base/archlinux
|
2018-08-24 19:32:29 +08:00
|
|
|
- docker pull docker pull scientificlinux/sl:7
|
|
|
|
- docker run -itd -v "${TRAVIS_BUILD_DIR}:/travis/workdir" --name sl-build ubuntu:xenial
|
2018-03-01 23:19:45 +08:00
|
|
|
|
|
|
|
script:
|
2018-03-01 23:50:38 +08:00
|
|
|
- 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"
|
2018-04-04 23:46:35 +08:00
|
|
|
- docker exec --env BRANCH=$BRANCH ubuntu-build /bin/bash -c "/travis/workdir/build-tests/ubuntu/prepare-ubuntu.sh"
|
|
|
|
- docker exec --env BRANCH=$BRANCH ubuntu-build /bin/bash -c "/travis/workdir/build-tests/ubuntu/compile-ubuntu.sh"
|
2018-04-05 00:02:49 +08:00
|
|
|
- docker exec --env BRANCH=$BRANCH arch-build /bin/bash -c "/travis/workdir/build-tests/arch/prepare-arch.sh"
|
|
|
|
- docker exec --env BRANCH=$BRANCH arch-build /bin/bash -c "/travis/workdir/build-tests/arch/compile-arch.sh"
|
2018-03-01 23:28:12 +08:00
|
|
|
|