Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Demo][DNM] Add OpenLab CI configuration for ARM64 build #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .zuul.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- project:
name: theopenlab/storm
check:
jobs:
- storm-build-arm64

- job:
name: storm-build-arm64
parent: init-test
description: |
The storm build in openlab cluster.
run: .zuul/playbooks/storm-build/run.yaml
nodeset: ubuntu-xenial-arm64
27 changes: 27 additions & 0 deletions .zuul/playbooks/storm-build/run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
- hosts: all
become: yes
tasks:
- name: Build storm
shell:
cmd: |
wget https://www.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz
tar -xzf apache-maven-3.5.4-bin.tar.gz
export PATH=$PWD/apache-maven-3.5.4/bin:$PATH

command curl -sSL https://rvm.io/mpapis.asc | sudo gpg --import -
command curl -sSL https://rvm.io/pkuczynski.asc | sudo gpg --import -
curl -L https://get.rvm.io | bash -s stable --autolibs=enabled && source ~/.profile

source /etc/profile.d/rvm.sh

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash && source ~/.bashrc
rvm use 2.4.2 --install
nvm install 8.9.3
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs


pip install mock
pip3 install mock

mvn clean install -DskipTests | tee $LOGS_PATH/build.txt
chdir: '{{ zuul.project.src_dir }}'
executable: /bin/bash
environment: '{{ global_env }}'