forked from CodeChain-io/codechain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (61 loc) · 1.57 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: rust
rust:
- 1.28.0
stages:
- name: test
if: branch != docker-build
- name: deploy
if: branch IN (docker-build, schnorr)
jobs:
include:
- stage: test
name: test-osx
os: osx
install:
- rustup toolchain install nightly-2018-07-17
- rustup component add rustfmt-preview --toolchain nightly-2018-07-17
before_script:
- cargo fetch --verbose
script:
- cargo +nightly-2018-07-17 fmt -- --check && RUST_BACKTRACE=1 cargo test --verbose --all
- name: test-linux
os: linux
sudo: required
install:
- rustup toolchain install nightly-2018-07-17
- rustup component add rustfmt-preview --toolchain nightly-2018-07-17
before_script:
- cargo fetch --verbose
script:
- cargo +nightly-2018-07-17 fmt -- --check && RUST_BACKTRACE=1 cargo test --verbose --all
- name: test-int-linux
os: linux
install:
- nvm install 8
- nvm use 8
- npm install -g yarn
script:
- cd test && yarn && yarn lint && yarn start
- name: test-int-osx
os: osx
install:
- nvm install 8
- nvm use 8
- npm install -g yarn
script:
- cd test && yarn && yarn lint && yarn start
- stage: deploy
name: deploy
sudo: required
services:
- docker
deploy:
provider: script
script: bash docker_push.sh
on:
all_branches: true
notifications:
webhooks: https://webhooks.gitter.im/e/71bb03cf9abce5b02c43
cache: cargo
git:
depth: 1