summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2019-07-13 21:02:36 +0200
committerPietro Albini <pietro@pietroalbini.org>2019-07-13 21:02:36 +0200
commit14a42ebabfd56eb50447d8d8c8d4e2b1235cf1c7 (patch)
treee75830cdec59667c260e9d1124966b03428cd5e2
parent97d33564c056b16f6e037d978d9516d455f426ad (diff)
ci: final tweaks to azure pipelines and remove travis
-rw-r--r--.azure-pipelines.yml11
-rw-r--r--.travis.yml20
2 files changed, 7 insertions, 24 deletions
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
index d863299..a0ce0fd 100644
--- a/.azure-pipelines.yml
+++ b/.azure-pipelines.yml
@@ -29,16 +29,19 @@ steps:
rustc -vV
displayName: Install Rust stable
+ - bash: cargo run -- check
+ displayName: Validate the repository contents
+
- bash: cargo fmt -- --check
displayName: Run rustfmt
- bash: cargo clippy -- -Dwarnings
displayName: Run clippy
- - bash: cargo run -- check
- displayName: Validate the repository contents
-
- - bash: cargo run -- static-api build
+ - bash: |
+ set -e
+ cargo run -- static-api build
+ echo "team-api.infra.rust-lang.org" > build/CNAME
displayName: Build the contents of the static API
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 0be1d7b..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-language: rust
-rust: stable
-cache: cargo
-
-before_script:
- - rustup component add rustfmt-preview clippy-preview
-
-script:
- - cargo fmt -- --check
- - cargo run check
- - cargo clippy
- - cargo run static-api build
- - echo "team-api.infra.rust-lang.org" > build/CNAME
-
-deploy:
- provider: script
- script: curl -LsSf https://git.io/fhJ8n | rustc - && (cd build && ../rust_out)
- skip_cleanup: true
- on:
- branch: master