Skip to content

Commit

Permalink
Convert CI to ci/run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
stepancheg committed Jan 12, 2020
1 parent 9b591f9 commit ea57b80
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,17 @@ env:

language: rust

rust:
- stable
- beta
- nightly

#addons:
# apt:
# packages:
# - protobuf-compiler

install:
- rustc --version
- ci/install-protobuf.sh
- cargo install protobuf-codegen --version '2'
- export RUST_BACKTRACE=1
matrix:
include:
- name: Stable
rust: stable
- name: Beta
rust: beta
- name: Nightly
rust: nightly

script:
- cargo test --all
- ./grpc-compiler/test-protoc-plugin/gen.sh
- cargo check --all
- ci/run.sh

notifications:
email:
Expand Down
19 changes: 19 additions & 0 deletions ci/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh -e

set -ex

rustc --versoin

export RUST_BACKTRACE=1

ci/install-protobuf.sh

cargo install protobuf-codegen --version '2'

cargo test --all

./grpc-compiler/test-protoc-plugin/gen.sh

cargo check --all

# vim: set ts=4 sw=4 et:

0 comments on commit ea57b80

Please sign in to comment.