Main branch set to the public version 2.4.7 of Sim-Diasca. #38
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: | |
- '*' | |
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" |