mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
ci: Fix CI to work with changes to Azure Pipelines build agent (#55)
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ RUN goenv global $GO_VERSION
|
||||
|
||||
RUN go version
|
||||
# Install Python
|
||||
ENV PYTHON_VERSION 3.7.2
|
||||
ENV PYTHON_VERSION 3.6.8
|
||||
ENV PYENV_ROOT /root/.pyenv
|
||||
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
|
||||
RUN curl https://pyenv.run | bash \
|
||||
|
||||
+5
-5
@@ -67,9 +67,9 @@ fn root_directory() -> io::Result<()> {
|
||||
|
||||
#[test]
|
||||
fn directory_in_root() -> io::Result<()> {
|
||||
let dir = Path::new("/opt");
|
||||
let dir = Path::new("/tmp");
|
||||
|
||||
let expected = format!("via {} ", Color::Cyan.bold().paint("/opt").to_string());
|
||||
let expected = format!("via {} ", Color::Cyan.bold().paint("/tmp").to_string());
|
||||
let actual = common::render_module("dir", &dir);
|
||||
assert_eq!(expected, actual);
|
||||
|
||||
@@ -79,7 +79,7 @@ fn directory_in_root() -> io::Result<()> {
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn truncated_directory_in_root() -> io::Result<()> {
|
||||
let dir = Path::new("/opt/starship/thrusters/rocket");
|
||||
let dir = Path::new("/tmp/starship/thrusters/rocket");
|
||||
fs::create_dir_all(&dir)?;
|
||||
|
||||
let expected = format!(
|
||||
@@ -98,7 +98,7 @@ fn truncated_directory_in_root() -> io::Result<()> {
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn git_repo_root() -> io::Result<()> {
|
||||
let tmp_dir = TempDir::new()?;
|
||||
let tmp_dir = TempDir::new_in(home_dir().unwrap())?;
|
||||
let repo_dir = tmp_dir.path().join("rocket-controls");
|
||||
fs::create_dir(&repo_dir)?;
|
||||
|
||||
@@ -117,7 +117,7 @@ fn git_repo_root() -> io::Result<()> {
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn directory_in_git_repo() -> io::Result<()> {
|
||||
let tmp_dir = TempDir::new()?;
|
||||
let tmp_dir = TempDir::new_in(home_dir().unwrap())?;
|
||||
let repo_dir = tmp_dir.path().join("rocket-controls");
|
||||
let dir = repo_dir.join("src");
|
||||
fs::create_dir_all(&dir)?;
|
||||
|
||||
+4
-4
@@ -15,7 +15,7 @@ fn folder_with_python_version() -> io::Result<()> {
|
||||
let expected = format!(
|
||||
"via {} ",
|
||||
Segment::new("python")
|
||||
.set_value("🐍 v3.7.2")
|
||||
.set_value("🐍 v3.6.8")
|
||||
.set_style(Color::Yellow.bold())
|
||||
);
|
||||
let actual = common::render_module("python", &dir.path());
|
||||
@@ -33,7 +33,7 @@ fn folder_with_requirements_txt() -> io::Result<()> {
|
||||
let expected = format!(
|
||||
"via {} ",
|
||||
Segment::new("python")
|
||||
.set_value("🐍 v3.7.2")
|
||||
.set_value("🐍 v3.6.8")
|
||||
.set_style(Color::Yellow.bold())
|
||||
);
|
||||
let actual = common::render_module("python", &dir.path());
|
||||
@@ -51,7 +51,7 @@ fn folder_with_pyproject_toml() -> io::Result<()> {
|
||||
let expected = format!(
|
||||
"via {} ",
|
||||
Segment::new("python")
|
||||
.set_value("🐍 v3.7.2")
|
||||
.set_value("🐍 v3.6.8")
|
||||
.set_style(Color::Yellow.bold())
|
||||
);
|
||||
let actual = common::render_module("python", &dir.path());
|
||||
@@ -69,7 +69,7 @@ fn folder_with_py_file() -> io::Result<()> {
|
||||
let expected = format!(
|
||||
"via {} ",
|
||||
Segment::new("python")
|
||||
.set_value("🐍 v3.7.2")
|
||||
.set_value("🐍 v3.6.8")
|
||||
.set_style(Color::Yellow.bold())
|
||||
);
|
||||
let actual = common::render_module("python", &dir.path());
|
||||
|
||||
Reference in New Issue
Block a user