summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2019-07-24 12:09:13 -0400
committerDan Davison <dandavison7@gmail.com>2019-07-24 12:09:13 -0400
commit70215d4a748e3fffeee82f62c16c671074dc127f (patch)
tree573ff0a29264dd88d7dbc795a55c6a22d3f2f42c
parent4738e0dba8bcbee716ed71a2a39f3dec36557bab (diff)
Revert "Use Appveyor instead of Travis for Windows build"
-rw-r--r--appveyor.yml49
-rw-r--r--ci/before_deploy.ps125
-rw-r--r--src/bat/.travis.yml3
3 files changed, 3 insertions, 74 deletions
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644
index a8f36ad3..00000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,49 +0,0 @@
-environment:
- global:
- TARGET: x86_64-pc-windows-msvc
- RUST_VERSION: stable
- CRATE_NAME: delta
- CARGO_HOME: "c:\\cargo"
- RUSTUP_HOME: "c:\\rustup"
-
-install:
- - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- - rustup-init.exe -y --default-host %TARGET%
- - set PATH=%PATH%;C:\cargo\bin
- - rustc -Vv
- - cargo -V
-
-build: false
-test_script:
- - cargo test --target %TARGET% --verbose
- - cargo run --target %TARGET% -- --compare-themes
-
-before_deploy:
- # Generate artifacts for release
- - cargo build --release --verbose
- - ps: ci\before_deploy.ps1
-
-deploy:
- description: 'Automatically deployed release'
- artifact: /.*\.zip/
- # Here's how:
- # - Go to 'https://github.com/settings/tokens/new' and generate a Token with only the
- # `public_repo` scope enabled
- # - Then go to 'https://ci.appveyor.com/tools/encrypt' and enter the newly generated token.
- # - Enter the "encrypted value" below
- auth_token:
- secure: cXYUTdv/KNy1SLsiKzp5+0W/roNCgQJOpAw2CA0CFzkvHC1XoLts88VBSBAZn7yU
- provider: GitHub
- on:
- RUST_VERSION: stable
- appveyor_repo_tag: true
-
-cache:
- - C:\Users\appveyor\.cargo\registry
- - target
-
-notifications:
- - provider: Email
- on_build_success: false
- on_build_failure: false
- on_build_status_changed: false
diff --git a/ci/before_deploy.ps1 b/ci/before_deploy.ps1
deleted file mode 100644
index 918b1d93..00000000
--- a/ci/before_deploy.ps1
+++ /dev/null
@@ -1,25 +0,0 @@
-# This script takes care of packaging the build artifacts that will go in the
-# release zipfile
-
-$SRC_DIR = $PWD.Path
-$STAGE = [System.Guid]::NewGuid().ToString()
-
-Set-Location $ENV:Temp
-New-Item -Type Directory -Name $STAGE
-Set-Location $STAGE
-
-$ZIP = "$SRC_DIR\$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-$($Env:TARGET).zip"
-
-Copy-Item "$SRC_DIR\target\release\delta.exe" '.\'
-
-# readme and license
-Copy-Item $SRC_DIR\README.md '.\'
-Copy-Item $SRC_DIR\LICENSE '.\'
-
-7z a "$ZIP" *
-
-Push-AppveyorArtifact "$ZIP"
-
-Set-Location ..
-Remove-Item $STAGE -Force -Recurse
-Set-Location $SRC_DIR
diff --git a/src/bat/.travis.yml b/src/bat/.travis.yml
index 324db53b..02ef3497 100644
--- a/src/bat/.travis.yml
+++ b/src/bat/.travis.yml
@@ -6,6 +6,9 @@ matrix:
- os: linux
rust: stable
env: TARGET=x86_64-unknown-linux-gnu
+ - os: windows
+ rust: stable
+ env: TARGET=x86_64-pc-windows-msvc
- os: linux
rust: stable
env: