This repository has been archived by the owner on Oct 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into pause_button_improved
- Loading branch information
Showing
9 changed files
with
120 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
pipeline { | ||
agent none | ||
stages { | ||
stage("Pull new images") { | ||
agent { | ||
label 'docker' | ||
} | ||
steps { | ||
sh 'docker pull amethystrs/builder-linux:stable' | ||
sh 'docker pull amethystrs/builder-linux:nightly' | ||
} | ||
} | ||
stage('Cargo Fmt') { | ||
environment { | ||
RUSTFLAGS = "-D warnings" | ||
} | ||
agent { | ||
docker { | ||
image 'amethystrs/builder-linux:stable' | ||
label 'docker' | ||
} | ||
} | ||
steps { | ||
echo 'Checking formatting...' | ||
sh 'cargo fmt -- --check' | ||
} | ||
} | ||
stage('Cargo Check') { | ||
environment { | ||
RUSTFLAGS = "-D warnings" | ||
} | ||
agent { | ||
docker { | ||
image 'amethystrs/builder-linux:stable' | ||
label 'docker' | ||
} | ||
} | ||
steps { | ||
echo 'Running Cargo check...' | ||
sh 'cargo check --all --all-targets' | ||
} | ||
} | ||
stage('Run Tests') { | ||
parallel { | ||
stage("Test on Windows") { | ||
environment { | ||
CARGO_HOME = 'C:\\Users\\root\\.cargo' | ||
RUSTUP_HOME = 'C:\\Users\\root\\.rustup' | ||
} | ||
agent { | ||
label 'windows' | ||
} | ||
steps { | ||
echo 'Beginning tests...' | ||
bat 'C:\\Users\\root\\.cargo\\bin\\cargo test --all' | ||
echo 'Tests done!' | ||
} | ||
} | ||
stage("Test on Linux") { | ||
agent { | ||
docker { | ||
image 'amethystrs/builder-linux:stable' | ||
label 'docker' | ||
} | ||
} | ||
steps { | ||
echo 'Beginning tests...' | ||
sh 'cargo test --all' | ||
echo 'Tests done!' | ||
} | ||
} | ||
// macOS is commented out due to needing to upgrade the OS, but MacStadium did not do the original install with APFS so we cannot upgrade easily | ||
// stage("Test on macOS") { | ||
// environment { | ||
// CARGO_HOME = '/Users/jenkins/.cargo' | ||
// RUSTUP_HOME = '/Users/jenkins/.rustup' | ||
// } | ||
// agent { | ||
// label 'mac' | ||
// } | ||
// steps { | ||
// echo 'Beginning tests...' | ||
// sh '/Users/jenkins/.cargo/bin/cargo test --all' | ||
// echo 'Tests done!' | ||
// } | ||
// } | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
pub mod debug; | ||
pub mod collision; | ||
pub mod combat; | ||
pub mod debug; | ||
pub mod decision; | ||
pub mod movement; | ||
pub mod wander; | ||
pub mod digestion; | ||
pub mod combat; | ||
pub mod health; | ||
pub mod movement; | ||
pub mod time_control; | ||
pub mod wander; |