diff options
-rw-r--r-- | .builds/linux.yml | 21 | ||||
-rw-r--r-- | .travis.yml | 57 | ||||
-rwxr-xr-x | ci/install.sh | 11 | ||||
-rwxr-xr-x | ci/script.sh | 16 |
4 files changed, 21 insertions, 84 deletions
diff --git a/.builds/linux.yml b/.builds/linux.yml new file mode 100644 index 0000000..7430c52 --- /dev/null +++ b/.builds/linux.yml @@ -0,0 +1,21 @@ +image: archlinux +sources: + - https://github.com/alacritty/vte +tasks: + - rustup: | + curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal -c clippy + - stable: | + cd vte + $HOME/.cargo/bin/cargo +stable test + - clippy: | + cd vte + $HOME/.cargo/bin/cargo +stable clippy + - rustfmt: | + $HOME/.cargo/bin/rustup toolchain install nightly -c rustfmt + cd vte + $HOME/.cargo/bin/cargo +nightly fmt -- --check + - 1-36-0: | + $HOME/.cargo/bin/rustup toolchain install --profile minimal 1.36.0 + cd vte + rm Cargo.lock + $HOME/.cargo/bin/cargo +1.36.0 test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a401da4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,57 +0,0 @@ -language: rust - -addons: - apt: - packages: - - libxcb-xfixes0-dev - -git: - depth: 1 - -os: - - linux - - osx - -rust: - - 1.36.0 - - stable - - nightly - -matrix: - fast_finish: true - include: - - if: tag IS present - os: linux - rust: stable - env: ARCH=i386 - - name: "Clippy Linux" - os: linux - env: CLIPPY=true - rust: stable - - name: "Clippy OSX" - os: osx - env: CLIPPY=true - rust: stable - - name: "Clippy Windows" - os: windows - env: CLIPPY=true - rust: stable-x86_64-pc-windows-msvc - - name: "Rustfmt" - os: linux - env: RUSTFMT=true - rust: nightly - - name: "Windows 1.36.0" - os: windows - rust: 1.36.0-x86_64-pc-windows-msvc - - name: "Windows Stable" - os: windows - rust: stable-x86_64-pc-windows-msvc - - name: "Windows Nightly" - os: windows - rust: nightly-x86_64-pc-windows-msvc - allow_failures: - - rust: nightly - - rust: nightly-x86_64-pc-windows-msvc - -install: ci/install.sh -script: ci/script.sh diff --git a/ci/install.sh b/ci/install.sh deleted file mode 100755 index ccbe372..0000000 --- a/ci/install.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# Add clippy for lint validation -if [ "$CLIPPY" == "true" ]; then - rustup component add clippy -fi - -# Add rustfmt for format validation -if [ "$RUSTFMT" == "true" ]; then - rustup component add rustfmt -fi diff --git a/ci/script.sh b/ci/script.sh deleted file mode 100755 index e601d34..0000000 --- a/ci/script.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -# Run clippy checks -if [ "$CLIPPY" == "true" ]; then - cargo clippy --all-targets - exit -fi - -# Run clippy rustfmt -if [ "$RUSTFMT" == "true" ]; then - cargo fmt -- --check - exit -fi - -# Run tests -cargo test |