forked from lsst/qserv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (23 loc) · 901 Bytes
/
.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
# whitelist
branches:
only:
- master
- /^tickets\/.*$/
sudo: false
services:
- docker
language: c++
before_install:
# Move git repository from 'detached' state to current branch HEAD
- export PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
- git checkout "$BRANCH"
# Set up parameters for containers deployment
- cp ./admin/tools/docker/deployment/travis/env.sh ./admin/tools/docker/deployment/localhost/env.sh
install:
# Retrieve container with Qserv dependencies
- docker pull qserv/qserv:dev
script:
- ./admin/tools/docker/3_build-git-image.sh -L -T travis "$PWD"
- ./admin/tools/docker/4_build-configured-images.sh -L -i travis
- ./admin/tools/docker/deployment/localhost/run-multinode-tests.sh