forked from TrueBitFoundation/truebit-os
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
46 lines (41 loc) · 1.16 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
dist: bionic
sudo: required
language: node_js
node_js:
- "8.11.3"
cache:
directories:
- "node_modules"
before_install:
# Install Ethereum Tools
- sudo add-apt-repository ppa:ethereum/ethereum -y
- sudo apt-get update
- sudo apt-get install software-properties-common
- sudo apt-get install solc
# Install Ganache & Truffle
- npm i -g ganache-cli truffle@4.1.8
- ganache-cli &>/dev/null &
# Install IPFS
- wget "https://dist.ipfs.io/go-ipfs/v0.4.9/go-ipfs_v0.4.9_linux-amd64.tar.gz" -O /tmp/ipfs.tar.gz
- pushd . && cd $HOME/bin && tar -xzvf /tmp/ipfs.tar.gz && popd
- export PATH="$HOME/bin/go-ipfs:$PATH"
- ipfs init
- ipfs daemon &
- sleep 15
- curl http://localhost:5001/api/v0/id
# Install ocaml
- sudo apt-get install -y wget gcc ocaml opam libzarith-ocaml-dev m4 pkg-config zlib1g-dev libffi-dev
- opam init -y --comp=4.06.1
# - opam init -y --comp=4.05.0
# - eval $(opam config env)
# - opam update
# - opam install -y cryptokit yojson ctypes ctypes-foreign
install:
- npm run fixperms
- npm install
# - npm run install
- npm run deps
- npm run compile
- npm run deploy
script:
- NODE_ENV='production' npm run test