blinky1/.gitlab-ci.yml

56 lines
1.3 KiB
YAML

stages:
- hello
- build
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
- echo "Preparing ssh environment done"
job1:
stage: hello
tags:
- hottis
- linux
- debian
script:
- echo "Hallo"
- echo "Welt"
job2:
stage: hello
tags:
- hottis
- linux
- debian
script:
- echo "Hello"
- echo "World"
job3:
stage: build
tags:
- hottis
- linux
- debian
only:
refs:
- master
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apt update
- apt install -y msp430-libc
- apt install -y binutils-msp430
- apt install -y gcc-msp430
script:
- make clean
- make all