forked from mirrors/thatmattlove-hyperglass
fix ci stages
This commit is contained in:
parent
65467819d2
commit
d99d584fde
2 changed files with 14 additions and 2 deletions
|
|
@ -21,4 +21,8 @@ ENV PATH=$PATH:/root/.poetry/bin
|
|||
FROM base as install
|
||||
WORKDIR /tmp/hyperglass
|
||||
RUN poetry install --no-ansi
|
||||
|
||||
FROM install as setup
|
||||
WORKDIR /tmp/hyperglass
|
||||
COPY .tests/dockersetup.sh /tmp/dockersetup.sh
|
||||
RUN ls -lsah /tmp
|
||||
12
.travis.yml
12
.travis.yml
|
|
@ -6,5 +6,13 @@ services:
|
|||
before_install:
|
||||
- docker build -t hyperglass/ubuntu -f .tests/DockerfileUbuntu .
|
||||
|
||||
script:
|
||||
- bash /tmp/dockersetup.sh
|
||||
jobs:
|
||||
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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue