33 lines
848 B
YAML
33 lines
848 B
YAML
variables:
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
test:
|
|
image: danger89/cmake:latest
|
|
script:
|
|
- apt update
|
|
- apt install -y libbsd-dev
|
|
- mkdir build
|
|
- cd build
|
|
- cmake ..
|
|
- make
|
|
- ./tests
|
|
|
|
docs:
|
|
image: polinux/mkdocs
|
|
timeout: 5 minutes
|
|
rules:
|
|
- if: $CI_COMMIT_BRANCH == 'master'
|
|
script:
|
|
- apk add openssh-client
|
|
- mkdir -p ~/.ssh
|
|
- ssh-keyscan -H fputs.com >> ~/.ssh/known_hosts
|
|
- echo "$ssh_key" >> ~/.ssh/id_rsa
|
|
- chmod -R 700 ~/.ssh
|
|
- eval "$(ssh-agent -s)"
|
|
- ssh-add ~/.ssh/id_rsa
|
|
- mkdocs build
|
|
- ssh debian@fputs.com rm -rf /var/www/fputs/docs/libflint
|
|
- ssh debian@fputs.com mkdir -p /var/www/fputs.com/docs/libflint
|
|
- ssh debian@fputs.com chmod 755 /var/www/fputs.com/docs/libflint
|
|
- scp -r ./site/* debian@fputs.com:/var/www/fputs.com/docs/libflint/
|