-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
52 lines (42 loc) · 2.12 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
env:
- DOCKER_COMPOSE_VERSION=1.21.1
before_install:
# update is required to update the repositories to see the new packages for
# Docker.
- sudo apt-get update
# Now we can install the newer docker-engine which is required for the newer
# docker-composer we will install next. The messy options are to force it to
# be non-interactive (normally it asks you a bunch of config questions).
- sudo apt-get install -o Dpkg::Options::="--force-confold" --force-yes -y docker-ce
# Print out the current docker-compose version. Once this reports 1.6+ then we
# do not need the following steps.
- docker-compose --version
# As of the writing of this script Travis has docker-compose v1.4.2, we need
# to update it to 1.8+. $DOCKER_COMPOSE_VERSION is provide from the `env`
# above.
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
# Check that docker-compose is now running the latest version (or at least the
# one we specified). This is not to be confused with the version we printed
# before doing the update.
- docker-compose --version
# Setup
# You will want this for logging. If one of your containers does not build for
# whatever reason it's best to report that now before your tests start
# otherwise it can be really tricky to debug why tests are failing sometimes.
- docker ps
script:
- ls -lah
- docker-compose -f ./usecase1/docker-compose.yml up &
- docker ps
- docker run gpdbsne
#- docker run gpdbsne /bin/bash -c "su - gpadmin;sed -i 's/export PXF_USER_IMPERSONATION=${PXF_USER_IMPERSONATION:=true}/export PXF_USER_IMPERSONATION=false/g' /usr/local/greenplum-db/pxf/conf/pxf-env.sh"
#- docker run gpdbsne /bin/bash -c "su - gpadmin;sed -i 's/hdfs://0.0.0.0:8020/hdfs://quickstart.cloudera:8020/g' /usr/local/greenplum-db/pxf/conf/core-site.xml"
docker-compose -f ./usecase1/docker-compose.yml down
- cd ${TRAVIS_BUILD_DIR}
- ls -al
notifications:
email:
- kongyew@gmail.com