-
Notifications
You must be signed in to change notification settings - Fork 31
/
.travis.yml
executable file
·36 lines (29 loc) · 913 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
30
31
32
33
34
35
36
---
sudo: required
#language: node_js
#node_js:
# - "node"
env:
# Test package on all supported OSes.
- distribution: centos
version: 7
- distribution: ubuntu
version: 14.04
- distribution: ubuntu
version: 18.04
services:
- docker
- xvfb
before_install:
# Pull base image
- 'sudo docker pull ${distribution}:${version}'
# Create custom image named: ${distribution}-${version}:tty-table
- 'sudo docker build --no-cache=true --file=docker/Dockerfile.${distribution}-${version} --tag=${distribution}-${version}:tty-table .'
before_script:
# Create virtual framebuffer so display output can be read with
# correct dimensions by test suite
- export DISPLAY=:99.0
# - sh -e /etc/init.d/xvfb start
script:
# Create a container from the custom image and run tests on it
- 'sudo docker run --name="${distribution}-${version}" ${distribution}-${version}:tty-table'