2020-05-17 17:40:18 +01:00
|
|
|
image: "debian:unstable"
|
2020-03-16 00:14:39 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
2020-03-17 10:56:25 +00:00
|
|
|
.build:
|
2020-03-16 18:32:42 +00:00
|
|
|
image: debian:stable-slim
|
2020-03-16 00:14:39 +00:00
|
|
|
stage: build
|
|
|
|
before_script:
|
2020-05-17 16:57:30 +01:00
|
|
|
- apt update && apt install -y make wget git emacs sudo gnutls-bin
|
2020-04-15 19:03:46 +01:00
|
|
|
- git clone -b $CI_COMMIT_REF_NAME https://gitlab.com/FG42/FG42 ~/.fg42/ && cd ~/.fg42/ && make install &&
|
2020-03-16 00:14:39 +00:00
|
|
|
script:
|
2020-03-16 21:39:03 +00:00
|
|
|
- cd ~/.fg42/ && fg42 -nw --script build.el
|
2020-03-16 21:34:29 +00:00
|
|
|
|
2020-11-11 12:37:44 +00:00
|
|
|
|
2020-04-15 17:15:23 +01:00
|
|
|
.build-v3:
|
|
|
|
image: debian:stable-slim
|
|
|
|
stage: build
|
|
|
|
before_script:
|
|
|
|
- apt update && apt install -y make wget git emacs sudo
|
2020-04-15 19:03:46 +01:00
|
|
|
- git clone -b $CI_COMMIT_REF_NAME https://gitlab.com/FG42/FG42 ~/.fg42/
|
2020-04-15 18:42:44 +01:00
|
|
|
script:
|
2020-04-17 09:25:56 +01:00
|
|
|
- ~/.fg42/bin/fbt build
|
2020-04-15 17:15:23 +01:00
|
|
|
|
|
|
|
build-branches-v3:
|
|
|
|
extends: .build-v3
|
|
|
|
only:
|
|
|
|
- branches
|
2020-11-11 12:37:44 +00:00
|
|
|
|
|
|
|
build-branches:
|
|
|
|
extends: .build
|
|
|
|
script:
|
|
|
|
- cd /root/.fg42/ && fg42 -nw --script build.el
|
|
|
|
- cd /root/ && tar zcf ~/fg42.$CI_COMMIT_REF_NAME.tar.gz .fg42/
|
|
|
|
- mv ~/fg42.$CI_COMMIT_REF_NAME.tar.gz /builds/$CI_PROJECT_PATH/
|
|
|
|
artifacts:
|
|
|
|
name: "fg42.$CI_COMMIT_REF_SLUG"
|
|
|
|
when: on_success
|
|
|
|
paths:
|
|
|
|
- fg42.$CI_COMMIT_REF_NAME.tar.gz
|
|
|
|
only:
|
|
|
|
- branches
|
2020-04-15 17:15:23 +01:00
|
|
|
|
2020-03-17 10:56:25 +00:00
|
|
|
build-branches:
|
|
|
|
extends: .build
|
2020-05-17 20:59:07 +01:00
|
|
|
script:
|
|
|
|
- cd /root/.fg42/ && fg42 -nw --script build.el
|
|
|
|
- cd /root/ && tar zcf ~/fg42.$CI_COMMIT_REF_NAME.tar.gz .fg42/
|
|
|
|
- mv ~/fg42.$CI_COMMIT_REF_NAME.tar.gz /builds/$CI_PROJECT_PATH/
|
|
|
|
artifacts:
|
|
|
|
name: "fg42.$CI_COMMIT_REF_SLUG"
|
|
|
|
when: on_success
|
|
|
|
paths:
|
|
|
|
- fg42.$CI_COMMIT_REF_NAME.tar.gz
|
2020-03-17 10:56:25 +00:00
|
|
|
only:
|
|
|
|
- branches
|
|
|
|
|
2020-03-16 21:34:29 +00:00
|
|
|
build-package:
|
2020-03-17 10:56:25 +00:00
|
|
|
extends: .build
|
2020-03-16 21:34:29 +00:00
|
|
|
script:
|
2020-03-17 22:56:23 +00:00
|
|
|
- cd /root/.fg42/ && fg42 -nw --script build.el
|
2020-05-17 20:59:07 +01:00
|
|
|
- cd /root/ && tar zcf ~/fg42.$CI_COMMIT_TAG.tar.gz .fg42/
|
2020-03-17 23:12:49 +00:00
|
|
|
- mv ~/fg42.$CI_COMMIT_TAG.tar.gz /builds/$CI_PROJECT_PATH/
|
2020-03-16 21:34:29 +00:00
|
|
|
artifacts:
|
2020-05-17 20:59:07 +01:00
|
|
|
name: "fg42.$CI_COMMIT_TAG"
|
2020-03-16 21:34:29 +00:00
|
|
|
when: on_success
|
|
|
|
paths:
|
2020-03-17 23:12:49 +00:00
|
|
|
- fg42.$CI_COMMIT_TAG.tar.gz
|
2020-03-16 21:34:29 +00:00
|
|
|
only:
|
|
|
|
- tags
|