-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
40 lines (33 loc) · 996 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
37
38
39
40
---
sudo: required
#language: node_js
#node_js:
# - "node"
env:
# Test package on all supported OSes.
- distribution: centos
version: 7
- distribution: centos
version: 8
- distribution: ubuntu
version: 16.04
- distribution: ubuntu
version: 18.04
- distribution: ubuntu
version: 20.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}:smartwrap .'
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}:smartwrap'