mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2025-02-16 16:44:46 +01:00
40 lines
996 B
YAML
40 lines
996 B
YAML
---
|
|
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'
|