mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
fix ci stages
This commit is contained in:
@ -21,4 +21,8 @@ ENV PATH=$PATH:/root/.poetry/bin
|
|||||||
FROM base as install
|
FROM base as install
|
||||||
WORKDIR /tmp/hyperglass
|
WORKDIR /tmp/hyperglass
|
||||||
RUN poetry install --no-ansi
|
RUN poetry install --no-ansi
|
||||||
|
|
||||||
|
FROM install as setup
|
||||||
|
WORKDIR /tmp/hyperglass
|
||||||
COPY .tests/dockersetup.sh /tmp/dockersetup.sh
|
COPY .tests/dockersetup.sh /tmp/dockersetup.sh
|
||||||
|
RUN ls -lsah /tmp
|
12
.travis.yml
12
.travis.yml
@ -6,5 +6,13 @@ services:
|
|||||||
before_install:
|
before_install:
|
||||||
- docker build -t hyperglass/ubuntu -f .tests/DockerfileUbuntu .
|
- docker build -t hyperglass/ubuntu -f .tests/DockerfileUbuntu .
|
||||||
|
|
||||||
script:
|
jobs:
|
||||||
- bash /tmp/dockersetup.sh
|
include:
|
||||||
|
- stage: Lint
|
||||||
|
script: docker run hyperglass/ubuntu /bin/sh -c "cd /tmp/hyperglass; poetry run flake8 hyperglass"
|
||||||
|
- stage: Setup
|
||||||
|
script: docker run hyperglass/ubuntu /tmp/dockersetup.sh
|
||||||
|
- stage: Start
|
||||||
|
script: docker run hyperglass/ubuntu /bin/sh -c "cd /tmp/hyperglass; poetry run hyperglass start &> /var/log/hyperglassci.log &"
|
||||||
|
- stage: Test
|
||||||
|
script: docker run hyperglass/ubuntu /bin/sh -c "curl -s -o /dev/null -w "%{http_code}" http://localhost:8001"
|
||||||
|
Reference in New Issue
Block a user