blinky1/.gitlab-ci.yml

49 lines
1.2 KiB
YAML
Raw Normal View History

2019-02-12 14:49:32 +01:00
stages:
2019-02-16 22:53:25 +01:00
- hello
2019-02-12 14:57:21 +01:00
- build
2019-02-16 22:55:01 +01:00
image: registry.gitlab.com/wolutator/gitlabrunner-msp430:latest
2019-02-16 22:53:25 +01:00
job1:
stage: hello
tags:
- hottis
- linux
- docker
script:
- echo "Hallo"
- echo "Welt"
- whoami
2019-02-16 22:41:59 +01:00
build:
2019-02-12 14:57:21 +01:00
stage: build
2019-02-12 16:23:41 +01:00
tags:
- hottis
- linux
2019-02-16 22:41:59 +01:00
- docker
2019-02-12 15:48:31 +01:00
only:
refs:
2019-02-12 15:49:32 +01:00
- master
2019-02-12 15:48:31 +01:00
variables:
2019-02-12 17:36:08 +01:00
GIT_SUBMODULE_STRATEGY: none
2019-02-12 17:16:59 +01:00
before_script:
- echo "Prepare ssh environment"
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- ssh git@gitlab.com
- echo "Preparing ssh environment done"
2019-02-12 14:57:21 +01:00
script:
2019-02-12 17:36:08 +01:00
- git submodule init
- git submodule update
2019-02-12 17:13:49 +01:00
- whoami
2019-02-12 17:57:04 +01:00
- pwd
2019-02-12 14:57:21 +01:00
- make clean
- make all