Fix CI build (hopefully), migrate to using Cargo workspace

This commit is contained in:
Lucien Greathouse
2019-01-09 16:49:23 -08:00
parent f2849357f8
commit 779bcaeccb
8 changed files with 32 additions and 22 deletions

3
server/.gitignore vendored
View File

@@ -1,3 +0,0 @@
/target/
/scratch/
**/*.rs.bk

2263
server/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,6 +7,8 @@ use std::{
path::{Path, PathBuf},
};
use rbx_tree::RbxValue;
use librojo::{
project::{Project, ProjectNode, InstanceProjectNode, SyncPointProjectNode},
};
@@ -17,14 +19,6 @@ lazy_static! {
};
}
#[test]
fn tour_de_force() {
let project_file_location = TEST_PROJECTS_ROOT.join("example.json");
let project = Project::load_exact(&project_file_location).unwrap();
assert_eq!(project.name, "example");
}
#[test]
fn empty() {
let project_file_location = TEST_PROJECTS_ROOT.join("empty/roblox-project.json");
@@ -69,8 +63,21 @@ fn single_sync_point() {
metadata: Default::default(),
});
let mut http_service_properties = HashMap::new();
http_service_properties.insert("HttpEnabled".to_string(), RbxValue::Bool {
value: true,
});
let http_service = ProjectNode::Instance(InstanceProjectNode {
class_name: "HttpService".to_string(),
children: HashMap::new(),
properties: http_service_properties,
metadata: Default::default(),
});
let mut root_children = HashMap::new();
root_children.insert("ReplicatedStorage".to_string(), replicated_storage);
root_children.insert("HttpService".to_string(), http_service);
let root_node = ProjectNode::Instance(InstanceProjectNode {
class_name: "DataModel".to_string(),