1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-24 21:57:41 +00:00

ci: Remove unused java testsuite (#445)

This commit is contained in:
Thomas O'Donnell 2019-09-30 03:38:53 +02:00 committed by Matan Kushner
parent 0eafb2bde7
commit d335abca3d
4 changed files with 0 additions and 48 deletions

View File

@ -71,11 +71,6 @@ jobs:
with: with:
python-version: "3.6.9" python-version: "3.6.9"
# Install Java at a fixed version
- uses: actions/setup-java@master
with:
java-version: '12.0.2'
# Run the ignored tests that expect the above setup # Run the ignored tests that expect the above setup
- uses: actions/checkout@master - uses: actions/checkout@master
- name: Run all tests - name: Run all tests

View File

@ -48,22 +48,6 @@ RUN curl https://pyenv.run | bash \
# Check that Python was correctly installed # Check that Python was correctly installed
RUN python --version RUN python --version
# Install Java.
ENV JAVA_HOME /home/nonroot/java
ENV PATH $JAVA_HOME/bin:$PATH
ENV JAVA_URL https://download.java.net/java/GA/jdk12.0.2/e482c34c86bd4bf8b56c0b35558996b9/10/GPL/openjdk-12.0.2_linux-x64_bin.tar.gz
RUN mkdir -p "$JAVA_HOME"
RUN set -eux; \
curl -fL -o $JAVA_HOME/openjdk.tgz "$JAVA_URL"; \
tar --extract \
--file $JAVA_HOME/openjdk.tgz \
--directory "$JAVA_HOME" \
--strip-components 1 \
--no-same-owner
RUN java -version && javac -version
# Create blank project # Create blank project
RUN USER=nonroot cargo new --bin /src/starship RUN USER=nonroot cargo new --bin /src/starship
WORKDIR /src/starship WORKDIR /src/starship

View File

@ -1,26 +0,0 @@
use std::fs::File;
use std::io;
use ansi_term::Color;
use crate::common;
// When these tests run in the CI, they use Azul's Zulu Java distribution.
// The version format returned by this java package is irregular and not supported (yet).
//#[test]
//#[ignore]
//fn folder_with_pom() -> io::Result<()> {
// let dir = common::new_tempdir()?;
// File::create(dir.path().join("pom.xml"))?;
//
// let output = common::render_module("java")
// .arg("--path")
// .arg(dir.path())
// .output()?;
// let actual = String::from_utf8(output.stdout).unwrap();
//
// let expected = format!("via {} ", Color::Red.dimmed().paint("☕ "));
// assert_eq!(expected, actual);
// Ok(())
//}

View File

@ -10,7 +10,6 @@ mod git_state;
mod git_status; mod git_status;
mod golang; mod golang;
mod hostname; mod hostname;
mod java;
mod jobs; mod jobs;
mod line_break; mod line_break;
mod modules; mod modules;