Commit a516c358 authored by Heinz N. Gies's avatar Heinz N. Gies

Merge branch 'test' into dev

parents 5d89d0e9 96948c87
Pipeline #12423347 passed with stage
in 2 minutes and 32 seconds
### Generic cli file for services
stages:
- test # run tets
- package # verify package creation
################################################################################
## helpers
################################################################################
.not_triggered: &not_triggered
except:
- pipelines
.is_triggered: &is_triggered
only:
- pipelines
################################################################################
## package stage
################################################################################
trigger_dialyzer:
<<: *is_triggered
image: erlang:19
stage: test
script:
- ./rebar3 upgrade $DOWNSTREAM_LIBRARY
- ./rebar3 dialyzer
tags:
- gitlab-org-high-cpu
trigger_xref:
<<: *is_triggered
image: erlang:19
stage: test
script:
- ./rebar3 upgrade $DOWNSTREAM_LIBRARY
- ./rebar3 xref
tags:
- gitlab-org-high-cpu
################################################################################
## package stage
################################################################################
# We make sure our package builds on both FreeBSD and SmartOS
smartos:
<<: *not_triggered
stage: package
script:
- export SUFFIX=$(/opt/local/bin/erl -noshell -eval '{{Y, MM, D}, {H, M, S}} = calendar:universal_time(), io:format("pre~4.10.0B~2.10.0B~2.10.0B~2.10.0B~2.10.0B~2.10.0B", [Y, MM, D, H, M, S]),init:stop()');
- export DS_VER=$(echo $CI_RUNNER_TAGS | sed 's/.*base64-\([0-9.]*\).*/\1/')
- export BRANCH=$(if [ "$CI_BUILD_REF_NAME" = "master" ]; then echo rel; else echo dev; fi)
- gmake dist
- mkdir -p rel/pkg/info
- s3cmd put rel/pkg/*.tgz s3://release.project-fifo.net/pkg/$DS_VER/$BRANCH/
- pkg_info -X rel/pkg/*.tgz > rel/pkg/info/$(pkg_info -X rel/pkg/*.tgz | awk -F "=" '/FILE_NAME/ {print $2}')
- s3cmd put rel/pkg/info/* s3://release-info.project-fifo.net/pkg/$DS_VER/$BRANCH/
- 'curl --request POST --form "token=$CI_JOB_TOKEN" --form "ref=master" --form "variables[DS_VER]=$DS_VER" --form "variables[BRANCH]=$BRANCH" https://gitlab.com/api/v4/projects/$REPO_PID/trigger/pipeline'
tags:
- erlang-19
- smartos
only:
refs:
- master
- dev
smartos_test:
stage: test
script:
- ./rebar3 as lint lint
- ./rebar3 xref
- ./rebar3 dialyzer
tags:
- erlang-19
- smartos
except:
- pipelines
- master
- dev
################################################################################
## bsd stage
################################################################################
bsd:
<<: *not_triggered
stage: package
script:
- export SUFFIX=$(/usr/local/bin/erl -noshell -eval '{{Y, MM, D}, {H, M, S}} = calendar:universal_time(), io:format("pre~4.10.0B~2.10.0B~2.10.0B~2.10.0B~2.10.0B~2.10.0B", [Y, MM, D, H, M, S]),init:stop()');
- export OS_VER=$(echo $CI_RUNNER_TAGS | sed 's/.*freebsd-\([0-9.]*\).*/\1/')
- export ARCH=$(uname -m)
- export BRANCH=$(if [ "$CI_BUILD_REF_NAME" = "master" ]; then echo rel; else echo dev; fi)
- gmake dist
- s3cmd put rel/pkgng/*.txz s3://freebsd.project-fifo.net/$BRANCH/$ARCH/$OS_VER/
- 'curl --request POST --form "token=$CI_JOB_TOKEN" --form "ref=master" --form "variables[ARCH]=$ARCH" --form "variables[OS_VER]=$OS_VER" --form "variables[BRANCH]=$BRANCH" https://gitlab.com/api/v4/projects/$PKGNG_REPO_PID/trigger/pipeline'
tags:
- erlang-19
- freebsd-11.0
only:
refs:
- master
- dev
......@@ -18,8 +18,8 @@
{<<"eper">>,{pkg,<<"eper">>,<<"0.94.0">>},0},
{<<"epgsql">>,{pkg,<<"epgsql">>,<<"3.3.0">>},3},
{<<"erlware_commons">>,{pkg,<<"erlware_commons">>,<<"1.0.0">>},0},
{<<"fifo_lager">>,{pkg,<<"fifo_lager">>,<<"0.1.6">>},0},
{<<"fifo_utils">>,{pkg,<<"fifo_utils">>,<<"0.1.49">>},0},
{<<"fifo_lager">>,{pkg,<<"fifo_lager">>,<<"0.1.8">>},0},
{<<"fifo_utils">>,{pkg,<<"fifo_utils">>,<<"0.1.51">>},0},
{<<"goldrush">>,{pkg,<<"goldrush">>,<<"0.1.9">>},1},
{<<"hdr_histogram">>,{pkg,<<"hdr_histogram">>,<<"0.3.2">>},1},
{<<"ibrowse">>,{pkg,<<"ibrowse">>,<<"4.4.0">>},1},
......@@ -64,8 +64,8 @@
{<<"eper">>, <<"F5FB2DAA0DF8878748E1C598428EDA942A173E5121FF35C1D632129B84593A3A">>},
{<<"epgsql">>, <<"974A578340E52012CBAB820CE756E7ED1DF1BAF0110C59A6753D8337A2CF9454">>},
{<<"erlware_commons">>, <<"087467DE5833C0BB5B3CCDD387F9E9C1FB816A75B7A709629BF24B5ED3246C51">>},
{<<"fifo_lager">>, <<"5D350A2C85F27F776B28E022A731B1B2F4A8C0D1703416C2553C4046AA09E837">>},
{<<"fifo_utils">>, <<"09EC2D0370B133E49084CF14A99E443D0DDB3F05BA8F9E95AC3A780D60CF2BD1">>},
{<<"fifo_lager">>, <<"037C26D77A5E27ECC158889A73CE745111B9291A0DE32CCD0A69E8C1514586A9">>},
{<<"fifo_utils">>, <<"2E1DA92C4C63CB36CF1325FBCF16F20B9781FCBA362CD86CAD300F35628D5E00">>},
{<<"goldrush">>, <<"F06E5D5F1277DA5C413E84D5A2924174182FB108DABB39D5EC548B27424CD106">>},
{<<"hdr_histogram">>, <<"11F4DB284E254614A2164EEF0BFCAB70F9F053481DB428D65E0ACB4B71DB2E4F">>},
{<<"ibrowse">>, <<"2D923325EFE0D2CB09B9C6A047B2835A5EDA69D8A47ED6FF8BC03628B764E991">>},
......
......@@ -23,11 +23,11 @@
├─ eper─0.94.0
├─ erlware_commons─1.0.0
│ └─ cf─0.2.2
├─ fifo_lager─0.1.6
├─ fifo_lager─0.1.8
│ ├─ lager_graylog─0.1.3
│ └─ lager_logstash_backend─0.1.3
│ └─ jsx─2.8.2
├─ fifo_utils─0.1.49
├─ fifo_utils─0.1.51
│ ├─ quickrand─1.7.2
│ └─ uuid─1.7.2
├─ jsone─1.2.6
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment