Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Add controller stub and circle CI configuration #65

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all 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
19 changes: 19 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,24 @@ jobs:
command: |
. venv/bin/activate
./scripts/test.sh

tests_rust:
docker:
- image: circleci/rust:1.3.7
steps:
- checkout

- run:
name: install dependencies
command: |
rustup install nightly
rustup default nightly

- run:
name: run tests
command: |
./scripts/test_rust.sh

tests_slow:
docker:
- image: circleci/python:3.7
Expand Down Expand Up @@ -99,3 +117,4 @@ workflows:
- tests
- tests_slow
- tests_benchmark
- tests_rust
286 changes: 286 additions & 0 deletions controller/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions controller/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "controller"
version = "0.1.0"
authors = ["The XAIN developers"]
edition = "2018"

[dependencies]
async-std = "^0.99"
3 changes: 3 additions & 0 deletions controller/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}
6 changes: 6 additions & 0 deletions scripts/test_rust.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -e

cd controller
cargo test