-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
32 lines (27 loc) · 2.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
sudo: required
services:
- docker
env:
global:
- ENCRYPTION_LABEL: "cac0dab93c8f"
git:
# disable the default submodule logic
submodules: false
before_install:
# use sed to replace the SSH URL with the public URL, then init and update submodules
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
- docker pull psycofdj/xtdcpp-xenial:1.5
- docker pull psycofdj/xtdcpp-bionic:1.5
script:
- mkdir ${TRAVIS_BUILD_DIR}/.build-xenial
- docker run -v ${TRAVIS_BUILD_DIR}:${TRAVIS_BUILD_DIR} psycofdj/xtdcpp-xenial:1.5 bash -c "cd ${TRAVIS_BUILD_DIR}/.build-xenial && cmake ${TRAVIS_BUILD_DIR} -DCI=TRUE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON"
- docker run -v ${TRAVIS_BUILD_DIR}:${TRAVIS_BUILD_DIR} psycofdj/xtdcpp-xenial:1.5 bash -c "cd ${TRAVIS_BUILD_DIR}/.build-xenial && make all -j2"
- docker run -v ${TRAVIS_BUILD_DIR}:${TRAVIS_BUILD_DIR} psycofdj/xtdcpp-xenial:1.5 bash -c "cd ${TRAVIS_BUILD_DIR}/.build-xenial && make reports -j2"
- docker run -v ${TRAVIS_BUILD_DIR}:${TRAVIS_BUILD_DIR} psycofdj/xtdcpp-xenial:1.5 bash -c "${TRAVIS_BUILD_DIR}/travis-ci/statuses.py --token=${access_token} --build-id=${TRAVIS_BUILD_ID} --commit=${TRAVIS_COMMIT} --branch=${TRAVIS_BRANCH} --build-dir=${TRAVIS_BUILD_DIR}/.build-xenial"
- mkdir ${TRAVIS_BUILD_DIR}/.build-bionic
- docker run -v ${TRAVIS_BUILD_DIR}:${TRAVIS_BUILD_DIR} psycofdj/xtdcpp-bionic:1.5 bash -c "cd ${TRAVIS_BUILD_DIR}/.build-bionic && cmake ${TRAVIS_BUILD_DIR} -DCI=TRUE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON"
- docker run -v ${TRAVIS_BUILD_DIR}:${TRAVIS_BUILD_DIR} psycofdj/xtdcpp-bionic:1.5 bash -c "cd ${TRAVIS_BUILD_DIR}/.build-bionic && make all -j2"
- docker run -v ${TRAVIS_BUILD_DIR}:${TRAVIS_BUILD_DIR} psycofdj/xtdcpp-bionic:1.5 bash -c "cd ${TRAVIS_BUILD_DIR}/.build-bionic && make reports -j2"
- docker run -v ${TRAVIS_BUILD_DIR}:${TRAVIS_BUILD_DIR} psycofdj/xtdcpp-bionic:1.5 bash -c "${TRAVIS_BUILD_DIR}/travis-ci/statuses.py --token=${access_token} --build-id=${TRAVIS_BUILD_ID} --commit=${TRAVIS_COMMIT} --branch=${TRAVIS_BRANCH} --build-dir=${TRAVIS_BUILD_DIR}/.build-bionic"
- cd ${TRAVIS_BUILD_DIR}/.build-bionic && ${TRAVIS_BUILD_DIR}/travis-ci/push-doc