Compare commits
No commits in common. "d76a824987b016fcd1bd7dba9262b9de2acf54de" and "79219793cf024664eea57c7b09cc3b1c9a1db032" have entirely different histories.
d76a824987
...
79219793cf
1
build.sh
1
build.sh
|
@ -38,7 +38,6 @@ build_dist() {
|
|||
|
||||
for target in $TARGETS; do
|
||||
if [ -f $target/dist.sh ]; then
|
||||
build_rust_targets release ${TARGETS[*]}
|
||||
cd $target && ./dist.sh
|
||||
fi
|
||||
done
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
VERSION=`cat Cargo.toml | grep "^version =" | sed -r 's/^version = "(.+)"$/\1/'`
|
||||
set -x
|
||||
|
||||
mkdir -p dist
|
||||
cp dashboard.desktop dist
|
||||
cp ../target/release/dashboard dist
|
||||
strip dist/dashboard
|
||||
tar -czf dashboard-${VERSION}.tgz dist/
|
||||
tar -cf dashboard.tgz dist/
|
||||
|
||||
|
|
|
@ -9,5 +9,5 @@ cp ../target/release/file-service dist
|
|||
cp ../target/release/auth-cli dist
|
||||
strip dist/file-service
|
||||
strip dist/auth-cli
|
||||
tar -czf file-service-${VERSION}.tgz dist/
|
||||
tar -cf file-service-${VERSION}.tar.gz dist/
|
||||
|
||||
|
|
|
@ -83,6 +83,7 @@ mod test {
|
|||
let db =
|
||||
Database::open_path(PathBuf::from("fixtures/five_games/")).expect("database to open");
|
||||
assert_eq!(db.all_games().count(), 5);
|
||||
for game in db.all_games() {}
|
||||
|
||||
assert_matches!(db.all_games().find(|g| g.info.black_player == Some("Steve".to_owned())),
|
||||
Some(game) => {
|
||||
|
|
|
@ -185,7 +185,7 @@ mod test {
|
|||
|
||||
#[test]
|
||||
fn current_player_changes_after_move() {
|
||||
let mut state = GameState::default();
|
||||
let mut state = GameState::new();
|
||||
assert_eq!(state.current_player, Color::Black);
|
||||
state.place_stone(Coordinate { column: 9, row: 9 }).unwrap();
|
||||
assert_eq!(state.current_player, Color::White);
|
||||
|
@ -193,7 +193,7 @@ mod test {
|
|||
|
||||
#[test]
|
||||
fn current_player_remains_the_same_after_self_capture() {
|
||||
let mut state = GameState::default();
|
||||
let mut state = GameState::new();
|
||||
state.board = Board::from_coordinates(
|
||||
vec![
|
||||
(Coordinate { column: 17, row: 0 }, Color::White),
|
||||
|
@ -214,7 +214,7 @@ mod test {
|
|||
|
||||
#[test]
|
||||
fn ko_rules_are_enforced() {
|
||||
let mut state = GameState::default();
|
||||
let mut state = GameState::new();
|
||||
state.board = Board::from_coordinates(
|
||||
vec![
|
||||
(Coordinate { column: 7, row: 9 }, Color::White),
|
||||
|
|
Loading…
Reference in New Issue