This repository has been archived by the owner on May 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 101
/
.travis.yml
106 lines (90 loc) · 3.61 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
dist: trusty
sudo: true
language: generic
jobs:
include:
- language: python
if: type = pull_request
python: '3.5'
env:
- TEST_TYPE=microraiden
- SOLC_URL='https://github.com/ethereum/solidity/releases/download/v0.4.17/solc-static-linux'
- SOLC_VERSION='v0.4.17'
before_install:
- mkdir -p $HOME/.bin
- export PATH=$PATH:$HOME/.bin
- ./.travis/download_solc.sh
cache:
pip: true
directories:
- $HOME/.cache/pip
install:
- pip install -U pip wheel coveralls "coverage<4.4"
- pip install pytest-travis-fold
- pip install flake8
- pip install -r requirements-dev.txt
- pip install .[dev]
before_script:
- flake8 microraiden/
script:
- coverage run --source microraiden/ --omit 'microraiden/test/*,microraiden/examples/*' -m py.test --populus-project 'contracts/' --travis-fold=always -vvvvvvvvs $TEST_TYPE
after_success:
- coveralls
- language: python
if: type = pull_request
python: '3.5'
env:
- TEST_TYPE=contracts
- SOLC_URL='https://github.com/ethereum/solidity/releases/download/v0.4.17/solc-static-linux'
- SOLC_VERSION='v0.4.17'
before_install:
- mkdir -p $HOME/.bin
- export PATH=$PATH:$HOME/.bin
- ./.travis/download_solc.sh
cache:
pip: true
directories:
- $HOME/.cache/pip
install:
- pip install -U pip wheel coveralls "coverage<4.4"
- pip install pytest-travis-fold
- pip install flake8
- pip install -r requirements-dev.txt
- pip install .[dev]
before_script:
- flake8 microraiden/
script:
- coverage run --source microraiden/ --omit 'microraiden/test/*,microraiden/examples/*' -m py.test --populus-project 'contracts/' -k-needs_xorg --travis-fold=always -vvvvvvvvs $TEST_TYPE
after_success:
- coveralls
- language: node_js
if: type = pull_request
node_js: 8
env:
- TEST_TYPE=js
- WEBUI=microraiden/webui/microraiden
cache:
directories:
- $WEBUI/node_modules
before_install:
- cd $WEBUI
install:
- npm install
script:
- npm run build
- npm test
- stage: deploy
if: type = push AND branch = deploy
before_install:
- openssl aes-256-cbc -K $encrypted_877337b94c68_key -iv $encrypted_877337b94c68_iv -in .travis/deploy.tar.gz.enc -out .travis/deploy.tar.gz -d
- (cd .travis && tar xzf deploy.tar.gz)
env:
- secure: "kLGtuCmaGM7DaXqynvf4MiM/5p1KP3+Uc/Vbmvt7T95c13G1+hQs+YEGUp1qitLOjdtGC2JapMgQPbzYaY2amG3m8+Eda/p06wFXPtGhQJpu6A+LqXwvARhQtk4rqJUrLFEW/VkEt1f/DOMFsRnghbdGAQmEW9wRmQewuQkKx26yfdv0iUaEi3Ja/72mcgviqNNIMxRQTMjy36PLWkjNkQWCKS9ZUNaTOKgSWpuBjm2oxV9gTe9sCaj8B9JJQYyJQF9opkFTU0jAguTLZAFIuBvdsXxWNgPXKCBG8XidVAYR2mXJzI1Rqf3zuQmZ9Kl6SwvjcRNQ5EHRhhcECSGTtJJkeFu2y8WPrEDrQIJGtoHM9NE1qAvJI5RDTGCas6liju9EOE9SrQv2M1heyn9abW59Y4Gc5NQ+EQRU/l04kh6vLaNc8oT6rSKtE3j/nSbvV/8rRDs5l2JQO4f27R7mXVTuV1sSw+7PYmbzXjIrgMQEFov9KTp1HI1XiBM3Gw6ayupebhoAtNrRYV8xwMP5bJXcEWi32a83ozPmBJVXJaY+cqb2P0Bj5hu+rPuiT0hKn9yAxZYoa8cob8tuFlpqbNph25tp/id4i6E/fFF68y7R+KoN1L/kSLeI4TtYwl7S0Wy6rmf3EpCaMb4nnRyf58QoXvpo9zR9rCSv7MeUEpY="
deploy:
- provider: script
skip_cleanup: true
script:
- ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i .travis/id_ed25519 $DEMO_SSH "bash -s" -- < .travis/deploy.sh
on:
repo: raiden-network/microraiden
branch: deploy