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

Merge branch 'test' into dev

parents 1d07feca 8f747084
Pipeline #12425920 failed with stage
in 1 minute and 22 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
################################################################################
# we can't dialyzer because: https://github.com/lrascao/rebar3_gpb_plugin/issues/51
#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
......@@ -5,13 +5,13 @@
{<<"ddb_client">>,{pkg,<<"ddb_client">>,<<"0.5.7">>},1},
{<<"ddb_connection">>,{pkg,<<"ddb_connection">>,<<"0.4.3">>},0},
{<<"dp_decoder">>,{pkg,<<"dp_decoder">>,<<"0.2.16">>},0},
{<<"dproto">>,{pkg,<<"dproto">>,<<"0.5.3">>},2},
{<<"dproto">>,{pkg,<<"dproto">>,<<"0.5.4">>},2},
{<<"dqe_idx">>,{pkg,<<"dqe_idx">>,<<"0.4.3">>},0},
{<<"dqe_idx_pg">>,{pkg,<<"dqe_idx_pg">>,<<"0.5.7">>},0},
{<<"dynamic_compile">>,{pkg,<<"dynamic_compile">>,<<"1.0.0">>},2},
{<<"epgsql">>,{pkg,<<"epgsql">>,<<"3.3.0">>},2},
{<<"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">>},2},
{<<"hackney">>,{pkg,<<"hackney">>,<<"1.6.6">>},0},
{<<"ibrowse">>,{pkg,<<"ibrowse">>,<<"4.4.0">>},2},
......@@ -26,7 +26,7 @@
1},
{<<"metrics">>,{pkg,<<"metrics">>,<<"1.0.1">>},1},
{<<"mimerl">>,{pkg,<<"mimerl">>,<<"1.0.2">>},1},
{<<"mmath">>,{pkg,<<"mmath">>,<<"0.2.19">>},0},
{<<"mmath">>,{pkg,<<"mmath">>,<<"0.2.20">>},0},
{<<"otters">>,{pkg,<<"otters">>,<<"0.2.10">>},1},
{<<"pgapp">>,{pkg,<<"pgapp">>,<<"0.0.2">>},1},
{<<"poolboy">>,{pkg,<<"poolboy">>,<<"1.5.1">>},1},
......@@ -46,13 +46,13 @@
{<<"ddb_client">>, <<"1BC5836D3EB6786778F6DD202B64D4649DAA44C8882FA2001BB22C1CA17C72E1">>},
{<<"ddb_connection">>, <<"B74F010840917CFAF6088391DCC9B91A1036213E4DDF2B58B4F7FBC00AEA01C2">>},
{<<"dp_decoder">>, <<"F08B30D5E53A8F47DD57AB1B48D81519685C9269B8FD59755EBA7E94EBA4F297">>},
{<<"dproto">>, <<"8B911526C22090681EE82C3D647A4A0BADAB0F18A3593E8C7C35609703AE54F9">>},
{<<"dproto">>, <<"396436EB3593AD0CF2896001ACAFF0B60DA9990078F0367A2682D22E0FEB82EE">>},
{<<"dqe_idx">>, <<"275F45869B1791BE6679D6B4A250C72CF43636CB4B3F2213E5D4AA6F8E0F1CF2">>},
{<<"dqe_idx_pg">>, <<"E6B24FEF5DD8F323FA14F67DB76DE15C0636B579E0CE6C5A3968CAD5EC3C0712">>},
{<<"dynamic_compile">>, <<"8171B2CB4953EA3ED2EF63F5B26ABF677ACD0CA32210C2A08A7A8406A743F76B">>},
{<<"epgsql">>, <<"974A578340E52012CBAB820CE756E7ED1DF1BAF0110C59A6753D8337A2CF9454">>},
{<<"fifo_lager">>, <<"5D350A2C85F27F776B28E022A731B1B2F4A8C0D1703416C2553C4046AA09E837">>},
{<<"fifo_utils">>, <<"09EC2D0370B133E49084CF14A99E443D0DDB3F05BA8F9E95AC3A780D60CF2BD1">>},
{<<"fifo_lager">>, <<"037C26D77A5E27ECC158889A73CE745111B9291A0DE32CCD0A69E8C1514586A9">>},
{<<"fifo_utils">>, <<"2E1DA92C4C63CB36CF1325FBCF16F20B9781FCBA362CD86CAD300F35628D5E00">>},
{<<"goldrush">>, <<"F06E5D5F1277DA5C413E84D5A2924174182FB108DABB39D5EC548B27424CD106">>},
{<<"hackney">>, <<"5564B4695D48FD87859E9DF77A7FA4B4D284D24519F0CD7CC898F09E8FBDC8A3">>},
{<<"ibrowse">>, <<"2D923325EFE0D2CB09B9C6A047B2835A5EDA69D8A47ED6FF8BC03628B764E991">>},
......@@ -65,7 +65,7 @@
{<<"lager_logstash_backend">>, <<"86E7FBE08B34DAF9341E9FC397EADFCD7C1ABA0A0EA901FA7A4C454A3C4C335C">>},
{<<"metrics">>, <<"25F094DEA2CDA98213CECC3AEFF09E940299D950904393B2A29D191C346A8486">>},
{<<"mimerl">>, <<"993F9B0E084083405ED8252B99460C4F0563E41729AB42D9074FD5E52439BE88">>},
{<<"mmath">>, <<"8549F4A2A9C5239323A252974DAE8B40B61BE88826A0EF7E8077900DE943F9E6">>},
{<<"mmath">>, <<"C07688D60E31C0794E2C50F8FE029747DE24A4E711A294169C69CCB3ACCB1294">>},
{<<"otters">>, <<"31A7B47D50E14B15CAE380D060F666A54A2D79688BCC29D4CCB70E2FE05B0EA8">>},
{<<"pgapp">>, <<"3E104BB777C8455D8B26D1538B67ABE0188EE97B1DF973FD936C2204CB316196">>},
{<<"poolboy">>, <<"6B46163901CFD0A1B43D692657ED9D7E599853B3B21B95AE5AE0A777CF9B6CA8">>},
......
......@@ -2,7 +2,7 @@
│ └─ cowlib─1.0.2
├─ ddb_connection─0.4.3
│ ├─ ddb_client─0.5.7
│ │ └─ dproto─0.5.3
│ │ └─ dproto─0.5.4
│ │ └─ jsxd─0.2.4
│ ├─ otters─0.2.10
│ │ ├─ dynamic_compile─1.0.0
......@@ -17,11 +17,11 @@
│ ├─ pgapp─0.0.2
│ │ └─ epgsql─3.3.0
│ └─ sqlmig─0.1.5
├─ 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
├─ hackney─1.6.6
......@@ -31,7 +31,7 @@
│ ├─ mimerl─1.0.2
│ └─ ssl_verify_fun─1.1.1
├─ jsone─1.2.6
├─ mmath─0.2.19
├─ mmath─0.2.20
├─ ranch─1.3.2
├─ recon─2.3.2
├─ snappiest─1.2.0
......
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