mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
commit
1e28289b8b
2 changed files with 47 additions and 30 deletions
|
@ -1,29 +1,46 @@
|
||||||
version: 0
|
version: 1
|
||||||
|
reporting: checks-v1
|
||||||
|
policy:
|
||||||
|
pullRequests: public
|
||||||
tasks:
|
tasks:
|
||||||
- provisionerId: '{{ taskcluster.docker.provisionerId }}'
|
$if: 'tasks_for in ["github-push", "github-pull-request"]'
|
||||||
workerType: '{{ taskcluster.docker.workerType }}'
|
then:
|
||||||
extra:
|
$let:
|
||||||
github:
|
run:
|
||||||
events:
|
$if: 'tasks_for == "github-push"'
|
||||||
- pull_request.opened
|
then: true
|
||||||
- pull_request.reopened
|
else: {$eval: 'event.action in ["opened", "reopened", "synchronize"]'}
|
||||||
- pull_request.synchronize
|
repo_url:
|
||||||
- push
|
$if: 'tasks_for == "github-push"'
|
||||||
|
then: ${event.repository.clone_url}
|
||||||
|
else: ${event.pull_request.head.repo.clone_url}
|
||||||
|
ref:
|
||||||
|
$if: 'tasks_for == "github-push"'
|
||||||
|
then: ${event.after}
|
||||||
|
else: ${event.pull_request.head.sha}
|
||||||
|
in:
|
||||||
|
- $if: run
|
||||||
|
then:
|
||||||
|
provisionerId: 'proj-misc'
|
||||||
|
workerType: 'ci'
|
||||||
|
deadline: {$fromNow: '1 hour'}
|
||||||
|
expires: {$fromNow: '1 day'}
|
||||||
payload:
|
payload:
|
||||||
maxRunTime: 3600
|
maxRunTime: 3600
|
||||||
image: 'rust:latest'
|
image: rust:latest
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
- '-c'
|
- '-c'
|
||||||
- >-
|
- >-
|
||||||
git clone {{event.head.repo.url}} repo &&
|
rustup component add rustfmt &&
|
||||||
|
git clone ${repo_url} repo &&
|
||||||
cd repo &&
|
cd repo &&
|
||||||
git config advice.detachedHead false &&
|
git config advice.detachedHead false &&
|
||||||
git checkout {{event.head.sha}} &&
|
git checkout ${ref} &&
|
||||||
cargo test
|
cargo test &&
|
||||||
|
cargo fmt -- --check
|
||||||
metadata:
|
metadata:
|
||||||
name: Test
|
name: taskchampion-tests
|
||||||
description: 'Run tests'
|
description: Run tests for taskchampion
|
||||||
owner: '{{ event.head.user.email }}'
|
owner: dustin@v.igoro.us
|
||||||
source: '{{ event.head.repo.url }}'
|
source: ${repo_url}
|
||||||
allowPullRequests: collaborators
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
mod task;
|
mod task;
|
||||||
mod taskbuilder;
|
mod taskbuilder;
|
||||||
|
|
||||||
pub use self::taskbuilder::TaskBuilder;
|
|
||||||
pub use self::task::{Task, Priority, Status, Timestamp, Annotation};
|
|
||||||
pub use self::task::Priority::*;
|
pub use self::task::Priority::*;
|
||||||
pub use self::task::Status::*;
|
pub use self::task::Status::*;
|
||||||
|
pub use self::task::{Annotation, Priority, Status, Task, Timestamp};
|
||||||
|
pub use self::taskbuilder::TaskBuilder;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue