-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ramon Medeiros
committed
Dec 8, 2019
1 parent
77dcf86
commit 693ae38
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |