Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
noursaidi committed Oct 25, 2024
1 parent 98ce379 commit 0e5b0cd
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 56 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: UDMI Integration Suite

on:
push:
branches:
- '**'
workflow_dispatch:

jobs:
images:
name: Build Docker Images
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Build UDMIS
run: |
udmis/bin/build check
bin/container udmis build --no-check
echo Built local UDMIS
- name: Docker images summary
run: docker images
- name: Setup UDMIS requisites
run: |
git clone https://github.com/faucetsdn/udmi_site_model.git
ln -s udmi_site_model/ site_model
(cd site_model; git log -n 1)
docker network create udminet --subnet 192.168.99.0/24
- name: Start UDMIS container
run: |
cat udmi_site_model/cloud_iot_config.json
docker run -d --net udminet --name udmis -p 8883:8883 \
-v $(realpath udmi_site_model):/root/site_model \
-v $PWD/var/tmp:/tmp \
-v $PWD/var/etcd:/root/udmi/var/etcd \
-v $PWD/var/mosquitto:/etc/mosquitto \
udmis udmi/bin/start_local block site_model/cloud_iot_config.json
for count in `seq 0 30`; do
echo Waiting for UDMIS startup $((30 - count))
[[ ! -f var/tmp/pod_ready.txt ]] || break
(docker ps | fgrep -q udmis) || break
sleep 1
done
ls -l var/tmp/pod_ready.txt 2>&1
- name: run test suite
run: misc/discoverynode/testing/e2e/test_local.sh $(realpath udmi_site_model)
56 changes: 0 additions & 56 deletions .github/workflows/start_local.yaml

This file was deleted.

0 comments on commit 0e5b0cd

Please sign in to comment.