-
Notifications
You must be signed in to change notification settings - Fork 38
/
.travis.yml
60 lines (52 loc) · 1.8 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
dist: trusty
sudo: false
language: erlang
otp_release: 20.2.2
env:
global:
- LD_LIBRARY_PATH=$HOME/.libsodium/lib:$LD_LIBRARY_PATH
- LD_RUN_PATH=$HOME/.libsodium/lib:$LD_RUN_PATH
- PATH=$PATH:$HOME/.libsodium/lib:$HOME/.libsodium/include:$HOME/.kiex
- LIBRARY_PATH=$HOME/.libsodium/lib:$LIBRARY_PATH
- C_INCLUDE_PATH=$HOME/.libsodium/include:$C_INCLUDE_PATH
matrix:
- MIX_ENV=test ELIXIR_VER=1.6.4 LIBSODIUM_VER=1.0.16
before_install:
# Install elixir
- curl -sSL https://raw.githubusercontent.com/taylor/kiex/master/install | bash -s
- "[ -d $HOME/.kiex/builds/elixir-git ] || (eval kiex install $ELIXIR_VER)"
- kiex default $ELIXIR_VER
- kiex use $ELIXIR_VER
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix clean
install:
# Install libsodium
- mkdir -p libsodium-src
- "[ -d $HOME/.libsodium/lib ] || (wget -O libsodium-src.tar.gz https://github.com/jedisct1/libsodium/releases/download/$LIBSODIUM_VER/libsodium-$LIBSODIUM_VER.tar.gz && tar -zxf libsodium-src.tar.gz -C libsodium-src --strip-components=1)"
- cd libsodium-src
- "[ -d $HOME/.libsodium/lib ] || (./configure --prefix=$HOME/.libsodium && make -j$(nproc) && make install && export LIBSODIUM_NEW=yes)"
- cd ..
# Recompile enacl if necessary
- "[ -z $LIBSODIUM_NEW ] || (mix deps.compile enacl)"
# Install rust
- curl https://sh.rustup.rs -sSf | sh -s -- -y
- source $HOME/.cargo/env
# Fetch aevm tests
- make aevm-test-deps
script:
- mix format --check-formatted
- mix compile --warnings-as-errors
- mix compile.xref --warnings-as-errors
- mix credo list
- mix coveralls -u --exclude disabled
cache:
directories:
- $HOME/.kiex
- $HOME/.cargo
- $HOME/.libsodium
- deps
- _build
- apps/aecore/src/cuckoo/c_src
- apps/aecore/priv/cuckoo