-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
63 lines (51 loc) · 1.53 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
53
54
55
56
57
58
59
60
61
62
63
group: edge
dist: trusty
language: node_js
node_js:
- 6
- 7
- 8
install: true
before_install:
# install docker 17.07.0~ce-0~ubuntu read https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-repository
- sudo apt remove docker docker-engine docker.io
- sudo apt update
- >
sudo apt install -y \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual
- >
sudo apt install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo apt-key fingerprint 0EBFCD88
- >
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
- sudo apt update -y
- sudo apt install -y docker-ce
- sudo apt-cache madison docker-ce
#- sudo apt install -y docker-ce=17.07.0~ce-0~ubuntu
# install docker-compose
- sudo apt install -y python-pip curl jq libxml2-utils
- sudo pip install docker-compose httpie
- sudo usermod -aG docker $(whoami)
# kill whatever punning on postgres / rabbitmq port
- sudo kill $(sudo lsof -t -i:5432) | true
- sudo kill $(sudo lsof -t -i:5672) | true
- sudo kill $(sudo lsof -t -i:27017) | true
# yarn
- npm i -g yarn npm-check-updates node-gyp
script:
- yarn -i
- bash e2e-tests/docker-compose.bash
- bash e2e-tests/docker-swarm.bash
after_install: cat *.log | true
cache:
directories:
- node_modules/