1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

start automated installer; improve ci testing

This commit is contained in:
checktheroads
2020-02-23 01:24:22 -07:00
parent afc4fe32d8
commit 2277b21dc0
7 changed files with 566 additions and 93 deletions

View File

@@ -1,14 +1,24 @@
---
language: minimal
services:
- docker
- redis
before_install:
- docker build -t hyperglass/ubuntu -f .tests/DockerfileUbuntu .
jobs:
include:
- stage: Lint
services:
- docker
before_install:
- docker build -t hyperglass/ubuntu -f .tests/app/ubuntu/Dockerfile .
script: docker run hyperglass/ubuntu /bin/sh -c "cd /tmp/hyperglass; poetry run flake8 hyperglass"
- stage: Test
script: docker run hyperglass/ubuntu /tmp/dockersetup.sh
- stage: Installer - Ubuntu
services:
- docker
before_install:
- docker build -t install_ubuntu -f .tests/install/ubuntu/Dockerfile .
script: docker run install_ubuntu /bin/bash /tmp/install.sh
- stage: App - Ubuntu
services:
- docker
- redis
before_install:
- docker build -t hyperglass/ubuntu -f .tests/app/ubuntu/Dockerfile .
script: docker run hyperglass/ubuntu /tmp/setup.sh