Robustified, with better management of LEEC caller state. #105
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |