-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (51 loc) · 1.89 KB
/
erlang-ci.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
name: Erlang CI
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
# See https://hub.docker.com/_/erlang:
container:
image: erlang:latest
steps:
- uses: actions/checkout@v2
- name: Compile
run: |
echo "Checking distribution and version"
cat /etc/*-release
# Actually does not look as an Ubuntu but a Debian:
echo "## Listing repositories: $(cat /etc/apt/sources.list)"
#echo "## Updating packages (1/2)"
#apt-get update
#echo "## Installing add-apt-repository"
#apt-get install --assume-yes software-properties-common
#echo "## Adding universe"
#add-apt-repository universe
#echo "## Updating packages (2/2)"
#apt-get update
echo "## Updating packages"
apt-get update
apt-get install --assume-yes tree graphviz gnuplot-nox uuid-runtime unzip
rebar3 compile
echo " - building from: $(pwd)"
echo " - content of parent directory: $(ls .. 2>/dev/null | tr '\n' ' ')"
echo " - content of _checkouts directory: $(ls _checkouts 2>/dev/null)"
echo " - content of _build/default/lib directory: $(ls _build/default/lib 2>/dev/null)"
make info-context
- name: Run tests
run: |
# Node distribution disabled by default (thanks to the NODE_NAMING
# variable) as Github nodes do not allow long_names (our default through
# the Ceylan software stack); Sim-Diasca activates distribution by
# itself anyway, in order to secure the uniqueness of its node names.
#
echo "Building and testing all first in the 'development' execution target:"
make test NODE_NAMING="--nn"
echo
echo "Then building and testing all in the 'production' execution target:"
make test-production NODE_NAMING="--nn"