-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.78 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
name: Erlang CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
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
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: |
base_dir="$(pwd)"
echo "Base directory is: '${base_dir}'."
cfg_dir="${HOME}/.config/universal-server/"
echo "Configuration directory is: '${cfg_dir}'."
us_common_base_dir="${base_dir}/_build/default/lib/us_common"
mkdir -p "${cfg_dir}"
cd "${cfg_dir}"
ln -s "${us_common_base_dir}/priv/for-testing/us.config"
ln -s "${base_dir}/priv/for-testing/us-web-for-tests.config"
cd "${base_dir}"
make test-ci NODE_NAMING="--sn"