Support/gitlab (#123)

* Updated gitlab process
This commit is contained in:
Roshan Syed 2019-09-10 14:11:12 -03:00 committed by GitHub
parent 9224af57e2
commit edec01fb29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,36 +1,28 @@
stages:
- pull
- build
- test
before_script:
- cd /var/www/Projects/595.peerplays/blockchain
pulljob:
stage: pull
script:
- git pull origin master
only:
- master
tags:
- pp-dev
buildjob:
build:
stage: build
script:
- git submodule update --init --recursive
- cmake .
- make
only:
- master
tags:
- pp-dev
testjob:
- make -j$(nproc)
artifacts:
untracked: true
paths:
- libraries/
- programs/
- tests/
tags:
- builder
test:
stage: test
dependencies:
- build
script:
- ./tests/betting_test
- ./tests/chain_test
- ./tests/tournament_test
only:
- master
tags:
- pp-dev
tags:
- builder