-
Notifications
You must be signed in to change notification settings - Fork 1
/
xenial.travis.yml
53 lines (53 loc) · 1.22 KB
/
xenial.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
53
dist: xenial
notifications:
email: false
git:
quiet: true
depth: 1
language: java
jdk: openjdk8
node_js: lts/*
python: 3
service:
- docker
addons:
apt:
update: true
packages:
- jq
- bash
- docker-ce
- python3-dev
- python3-pip
- python3-six
- python3-setuptools
install: true
before_install:
- docker-compose -v
- for pip in pip pip3 ; do
which $pip || echo "which $pip command failed." ;
$(which $pip) -V || echo "$(which $pip) -V command failed." ;
done
- export PATH=$HOME/.local/bin:$PATH
- pip3 install --user $(whoami) --upgrade pip # pip3 -> pip
- for pip in pip pip3 ; do
which $pip || echo "which $pip command failed." ;
$(which $pip) -V || echo "$(which $pip) -V command failed." ;
done
#- pip install --user $(whoami) --upgrade pip
- pip install --user $(whoami) --upgrade docker-compose httpie
- http --version --debug
- docker-compose -v
script:
- docker pull kennethreitz/httpbin
- docker run --rm --name httpbin -d -p 80:80 kennethreitz/httpbin
- http :80/get | jq '.'
- http :80/get
after_script:
#- docker rm -f -v httpbin
- docker stop httpbin
cache:
packages: true
pip: true
directories:
- ~/.docker