-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (43 loc) · 1.22 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
sudo: required
dist: trusty
language: node_js
node_js:
- "4"
# - "6"
# - "7"
# - "8"
install:
# Update docker-engine using Ubuntu 'trusty' apt repo
- >
curl -sSL "https://get.docker.com/gpg" |
sudo -E apt-key add -
- >
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" |
sudo tee -a /etc/apt/sources.list
- sudo apt-get update
- >
sudo apt-get -o Dpkg::Options::="--force-confdef" \
-o Dpkg::Options::="--force-confold" --assume-yes --allow-unauthenticated install docker-engine
- docker version
# Update docker-compose via pip
- sudo pip install docker-compose
- docker-compose version
# NodeJS Install
- "npm install"
# Add self-signed cert to System in case build need it
- sudo cp docker/twitter-service/certs/public.crt /usr/local/share/ca-certificates/public.crt
- sudo chmod 644 /usr/local/share/ca-certificates/public.crt
# Update public certs
- sudo update-ca-certificates --verbose
before_script:
# - export DISPLAY=:99.0
# - sh -e /etc/init.d/xvfb start
- export DOCKER_CLIENT_TIMEOUT=120
- docker-compose build
script:
- docker-compose up -d
- sleep 25
- npm test
- docker ps | grep -q twitter-service
after_script:
- docker-compose down