Skip to content

Commit

Permalink
Migrate from ursa-labs/crossbow
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed Jan 11, 2021
0 parents commit 8b127b9
Show file tree
Hide file tree
Showing 6 changed files with 136 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2

jobs:
build:
machine: true

workflows:
version: 2
build:
jobs:
- build:
filters:
branches:
only:
- /.*-circle-.*/
31 changes: 31 additions & 0 deletions .github/workflows/nightly_page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Report

on:
schedule:
- cron: '0 12 * * *'

jobs:

nightly-report:
name: Update Github page
runs-on: ubuntu-latest
if: false
steps:
- name: Checkout Arrow
shell: bash
run: git clone https://github.com/apache/arrow
- name: Checkout Crossbow
shell: bash
run: git clone https://github.com/ursa-labs/crossbow
- name: Setup Conda
uses: s-weigand/setup-conda@v1
with:
conda-channels: "conda-forge"
- name: Install Dependencies
shell: bash
run: conda install -y --file arrow/ci/conda_env_crossbow.txt
- name: Send Report
shell: bash
env:
CROSSBOW_GITHUB_TOKEN: ${{ secrets.CROSSBOW_GITHUB_TOKEN }}
run: arrow/dev/tasks/crossbow.py github-page generate -n 20
41 changes: 41 additions & 0 deletions .github/workflows/nightly_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Report

on:
schedule:
- cron: '0 10 * * *'

jobs:

nightly-report:
name: Send Nightly Report
runs-on: ubuntu-latest
steps:
- name: Checkout Arrow
shell: bash
run: git clone https://github.com/apache/arrow
- name: Checkout Crossbow
shell: bash
run: git clone https://github.com/ursa-labs/crossbow
- name: Setup Conda
uses: s-weigand/setup-conda@v1
with:
conda-channels: "conda-forge"
- name: Install Dependencies
shell: bash
run: conda install -y --file arrow/ci/conda_env_crossbow.txt
- name: Send Report
shell: bash
env:
CROSSBOW_GITHUB_TOKEN: ${{ secrets.CROSSBOW_GITHUB_TOKEN }}
CROSSBOW_REPORT_SMTP_USER: ${{ secrets.CROSSBOW_SMTP_USER }}
CROSSBOW_REPORT_SMTP_PASSWORD: ${{ secrets.CROSSBOW_SMTP_PASSWORD }}
run: |
job_prefix=nightly-$(date -I)
job_id=$(arrow/dev/tasks/crossbow.py latest-prefix ${job_prefix})
echo "Sending report for job ${job_id}..."
arrow/dev/tasks/crossbow.py report \
--send \
--sender-name Crossbow \
--sender-email '[email protected]' \
--recipient-email '[email protected]' \
${job_id}
33 changes: 33 additions & 0 deletions .github/workflows/nightly_submit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Submit

on:
schedule:
- cron: '0 6 * * *'

jobs:

nightly-submit:
name: Submit Nightly Builds
runs-on: ubuntu-latest
steps:
- name: Checkout Arrow
shell: bash
run: git clone https://github.com/apache/arrow
- name: Checkout Crossbow
shell: bash
run: git clone https://github.com/ursa-labs/crossbow
- name: Setup Conda
uses: s-weigand/setup-conda@v1
with:
conda-channels: "conda-forge"
- name: Install Dependencies
shell: bash
run: conda install -y --file arrow/ci/conda_env_crossbow.txt
- name: Submit Nightlies
shell: bash
env:
CROSSBOW_GITHUB_TOKEN: ${{ secrets.CROSSBOW_GITHUB_TOKEN }}
run: |
arrow/dev/tasks/crossbow.py submit \
--job-prefix nightly-$(date -I) \
--group nightly
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
branches:
only:
- /.*-travis-.*/

os: linux
dist: trusty
language: generic
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Arrow Packaging Tasks

## Nightlies

The nightly builds are submitted by cron jobs running as Github Actions
cron jobs, see the github actions workflows defined in this repository.

For the triggered tasks see the nightly group of crossbow's
[task definition file](https://github.com/apache/arrow/blob/master/dev/tasks/tasks.yml).

0 comments on commit 8b127b9

Please sign in to comment.