Skip to content

Commit

Permalink
Add OpenLab CI configuration for ARM64 build
Browse files Browse the repository at this point in the history
This patch adds the CI configuration to enable the support for arm
build in OpenLab.

After this, each pull request in theopenlab/storm will trigger the
storm-arm64-build job which verified the arm build on ARM cluster.
  • Loading branch information
Yikun committed Jun 10, 2019
1 parent b9ab5e5 commit c5b885b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
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
pip install mock
pip3 install mock
mvn clean install -DskipTests
chdir: '{{ zuul.project.src_dir }}'
executable: /bin/bash
environment: '{{ global_env }}'

0 comments on commit c5b885b

Please sign in to comment.