[gtk-web/new-website: 166/191] testing gitlab ci
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-web/new-website: 166/191] testing gitlab ci
- Date: Thu, 21 Nov 2019 12:32:26 +0000 (UTC)
commit 891e76d7d1ba9a0e5572d6b9e047f9de86665990
Author: ravgeetdhillon <ravgeetdhillon gmail com>
Date: Tue Aug 13 22:32:11 2019 +0530
testing gitlab ci
.gitlab-ci.yml | 47 +++++++++--------------------------------------
1 file changed, 9 insertions(+), 38 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c6e4f61..25b80e5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,28 +4,7 @@ variables:
JEKYLL_ENV: production
LC_ALL: C.UTF-8
-stages:
- - installation
- - structuring
- - generation
- - test
- - deploy
-
-api_data:
- stage: installation
- script:
- - mkdir ./_data/api_fetch
- - curl -o- https://gitlab.gnome.org/api/v4/projects/665/repository/tags?order_by=name >
./_data/api_fetch/tags.json
- - curl -o- https://api.rss2json.com/v1/api.json?rss_url=https%3A%2F%2Fblog.gtk.org%2Ffeed%2F >
./_data/api_fetch/gtk-blog-feed.json
- - curl -o- https://gitlab.gnome.org/api/v4/projects/665/issues_statistics >
./_data/api_fetch/issues_stats.json
- - curl -o- https://gitlab.gnome.org/api/v4/projects/665/issues?state=opened > ./_data/api_fetch/tags.json
- artifacts:
- paths:
- - _data/api_fetch
-
-npm:
- stage: installation
- script:
+before_script:
- apt-get update -y
- apt-get install -y curl
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
@@ -33,26 +12,20 @@ npm:
- nvm install node
- nvm use node
- npm install
- artifacts:
- paths:
- - node_modules
-
-structure:
- stage: structuring
- script:
+ - gem install bundler jekyll
+ - bundle install
+ - mkdir ./_data/api_fetch
+ - curl -o- https://gitlab.gnome.org/api/v4/projects/665/repository/tags?order_by=name >
./_data/api_fetch/tags.json
+ - curl -o- https://api.rss2json.com/v1/api.json?rss_url=https%3A%2F%2Fblog.gtk.org%2Ffeed%2F >
./_data/api_fetch/gtk-blog-feed.json
+ - curl -o- https://gitlab.gnome.org/api/v4/projects/665/issues_statistics >
./_data/api_fetch/issues_stats.json
+ - curl -o- https://gitlab.gnome.org/api/v4/projects/665/issues?state=opened > ./_data/api_fetch/tags.json
- mv ./node_modules/* ./assets/ -f
- rm -rf ../node_modules
-
-sass:
- stage: generation
- script:
- npm run sass
test:
stage: test
script:
- - gem install bundler jekyll
- - bundle install
- bundle exec jekyll build -d test
artifacts:
paths:
@@ -63,11 +36,9 @@ test:
pages:
stage: deploy
script:
- - gem install bundler jekyll
- - bundle install
- bundle exec jekyll build -d public
artifacts:
paths:
- public
only:
- - master
+ - master
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]