-
Notifications
You must be signed in to change notification settings - Fork 45
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
Showing
11 changed files
with
113 additions
and
3 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
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
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,8 @@ | ||
#!/bin/bash -ex | ||
|
||
./alpha/set_dependencies.sh | ||
|
||
./HWIMO-BUILD | ||
pwd | ||
ls -l | ||
cp *.deb ../build |
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,13 @@ | ||
--- | ||
platform: linux | ||
|
||
inputs: | ||
- name: on-tftp | ||
- name: on-core | ||
- name: manifest-artifactory | ||
outputs: | ||
- name: build | ||
|
||
run: | ||
path: "alpha/build_deb.sh" | ||
dir: "on-tftp" |
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,12 @@ | ||
#!/bin/bash -ex | ||
|
||
if [ "${VERIFY_DEP}" == "true" ]; then | ||
COMMIT=$(cat $(ls ../manifest-artifactory/manifest*.json) | jq -r .ontftp.commit) | ||
git config --add remote.origin.fetch +refs/pull/*/head:refs/remotes/origin/pull/* | ||
git fetch | ||
git checkout $COMMIT | ||
export ONCORE_TAG=$(<../on-core-docker/digest) | ||
sed -i "s/^FROM.*/FROM $REGISTRY\/${REPO_OWNER}\/on-core@${ONCORE_TAG}/" ./Dockerfile | ||
fi | ||
cat Dockerfile | ||
cp -rf * ../build |
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,13 @@ | ||
--- | ||
platform: linux | ||
|
||
inputs: | ||
- name: on-tftp | ||
- name: manifest-artifactory | ||
- name: on-core-docker | ||
outputs: | ||
- name: build | ||
|
||
run: | ||
path: "alpha/build_docker.sh" | ||
dir: "on-tftp" |
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,11 @@ | ||
--- | ||
platform: linux | ||
|
||
inputs: | ||
- name: on-tftp | ||
outputs: | ||
- name: build | ||
|
||
run: | ||
path: "alpha/build_deb.sh" | ||
dir: "on-tftp" |
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,8 @@ | ||
--- | ||
platform: linux | ||
|
||
inputs: | ||
- name: on-tftp | ||
run: | ||
path: "alpha/unittest.sh" | ||
dir: "on-tftp" |
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,26 @@ | ||
#!/bin/bash -ex | ||
|
||
if [ "${VERIFY_DEP}" == "true" ]; then | ||
COMMIT=$(cat $(ls ../manifest-artifactory/manifest*.json) | jq -r .ontftp.commit) | ||
git config --add remote.origin.fetch +refs/pull/*/head:refs/remotes/origin/pull/* | ||
git fetch | ||
git checkout $COMMIT | ||
pushd ../on-core | ||
COMMIT=$(cat $(ls ../manifest-artifactory/manifest*.json) | jq -r .oncore.commit) | ||
git config --add remote.origin.fetch +refs/pull/*/head:refs/remotes/origin/pull/* | ||
git fetch | ||
git checkout $COMMIT | ||
rm -rf .git | ||
popd | ||
mkdir -p node_modules | ||
|
||
# Map on-core | ||
pushd ../ | ||
ln -s $(pwd)/on-core $(pwd)/on-tftp/node_modules/on-core | ||
popd | ||
|
||
# Run npm install for on-core | ||
pushd ../on-core | ||
npm install | ||
popd | ||
fi |
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,7 @@ | ||
#!/bin/sh -ex | ||
./alpha/set_dependencies.sh | ||
ps -aux | ||
service rabbitmq-server start | ||
/usr/bin/mongod --fork --logpath /var/log/mongodb/monngod.log | ||
npm install | ||
./node_modules/.bin/_mocha $(find spec -name '*-spec.js') --timeout 10000 --require spec/helper.js |
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,10 @@ | ||
--- | ||
platform: linux | ||
|
||
inputs: | ||
- name: on-tftp | ||
- name: on-core | ||
- name: manifest-artifactory | ||
run: | ||
path: "alpha/unittest.sh" | ||
dir: "on-tftp" |