From 6297c2477e2754899ed0031beb0c9d53cb05c827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20HUGUET?= <fractdesignfrance@gmail.com> Date: Wed, 9 Oct 2019 10:53:08 +0200 Subject: [PATCH] add ci --- .gitlab-ci.yml | 34 ++++++---------------------------- bde.iiens.net/testfile | 0 test.sh | 1 + 3 files changed, 7 insertions(+), 28 deletions(-) create mode 100644 bde.iiens.net/testfile create mode 100644 test.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8b0a0b6..5656a5d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,33 +1,11 @@ -# requiring the environment of NodeJS 10 -image: node:10 +ubuntu:18.04 -# add 'node_modules' to cache for speeding up builds -cache: - paths: - - node_modules/ # Node modules and dependencies +# Install prerequisite (lftp) before_script: - - npm install gitbook-cli -g # install gitbook - - gitbook fetch 3.2.3 # fetch final stable version - - gitbook install # add any requested plugins in book.json + - apt-get update -qy + - apt-get install -y lftp -test: - stage: test +build: script: - - gitbook build . public # build to public path - only: - - branches # this job will affect every branch except 'master' - except: - - master - -# the 'pages' job will deploy and build your site to the 'public' path -pages: - stage: deploy - script: - - gitbook build . public # build to public path - artifacts: - paths: - - public - expire_in: 1 week - only: - - master # this job will affect only the 'master' branch + - lftp -e 'set sftp:connect-program "ssh -a -x -i $PRIVATE_KEY"; connect sftp://aeiie@perso.iiens.net; mirror -X .* -X .*/ --reverse --verbose --delete bde.iiens.net/ /home/users/assoces/aeiie/html/web/test; UpdateFinished' diff --git a/bde.iiens.net/testfile b/bde.iiens.net/testfile new file mode 100644 index 0000000..e69de29 diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..88e68f4 --- /dev/null +++ b/test.sh @@ -0,0 +1 @@ +lftp -c 'set sftp:connect-program ssh -a -x -i /mnt/d/Program/PUTTY/key/bde_openssh_key_private_nopass; connect sftp://aeiie@perso.iiens.net; mirror -eR -X .* -X .*/ --reverse --verbose --delete bde.iiens.net/ /home/users/assoces/aeiie/html/web/test; UpdateFinished' -- GitLab