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: stages:
- pull
- build - build
- test - test
before_script: build:
- cd /var/www/Projects/595.peerplays/blockchain
pulljob:
stage: pull
script:
- git pull origin master
only:
- master
tags:
- pp-dev
buildjob:
stage: build stage: build
script: script:
- git submodule update --init --recursive
- cmake . - cmake .
- make - make -j$(nproc)
only: artifacts:
- master untracked: true
paths:
- libraries/
- programs/
- tests/
tags: tags:
- pp-dev - builder
testjob: test:
stage: test stage: test
dependencies:
- build
script: script:
- ./tests/betting_test
- ./tests/chain_test - ./tests/chain_test
- ./tests/tournament_test
only:
- master
tags: tags:
- pp-dev - builder