Skip to content

Commit

Permalink
Add Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon Medeiros committed Dec 8, 2019
1 parent 77dcf86 commit 693ae38
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/scripts/setup_kimchi_ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

set -e o pipefail

function get_deps() {
echo $(python3 -c "import yaml;print(' '.join(yaml.load(open('dependencies.yaml'), Loader=yaml.FullLoader)[\"$1\"][\"$2\"]))")
}


# install deps
sudo apt update
sudo apt install -y $(get_deps development-deps common)
sudo apt install -y $(get_deps development-deps ubuntu)

sudo apt install -y $(get_deps runtime-deps common)
sudo apt install -y $(get_deps runtime-deps ubuntu)

pip3 install -r requirements-UBUNTU.txt
pip3 install -r requirements-dev.txt

# autogen and make
./autogen.sh --system
make
39 changes: 39 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: kimchi-CI
on: ["push"]

jobs:
build-and-test-kimchi:
strategy:
matrix:
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
steps:

- uses: actions/checkout@v2-beta
with:
repository: ramonmedeiros/wok
ref: refs/heads/master

- name: setup wok deps
run: |
bash .github/scripts/setup_wok_ubuntu.sh
shell: bash

- uses: actions/checkout@v2-beta
with:
path: ./src/wok/plugins/kimchi
clean: false

- name: setup kimchi deps
working-directory: ./src/wok/plugins/kimchi
run: |
bash .github/scripts/setup_kimchi_ubuntu.sh
shell: bash

- name: run tests
working-directory: ./src/wok/plugins/kimchi
run: |
cd tests
sudo make check-local
sudo make check

0 comments on commit 693ae38

Please sign in to comment.