Skip to content

Commit 3cde35b

Browse files
author
Lakhan Mandloi
committed
Issue project-sunbird#13 feat: CircleCI Integration - Pushing codebase to dev branch
1 parent a0b1c73 commit 3cde35b

File tree

529 files changed

+14706
-36506
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

529 files changed

+14706
-36506
lines changed

.circleci/config.yml

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
version: 2
2+
jobs:
3+
staging:
4+
working_directory: /project/workplace/
5+
docker:
6+
- image: lakhanmandloi/sunbird-ubuntu-full
7+
steps:
8+
9+
#Checkout
10+
- checkout
11+
12+
# Run Build command
13+
- type: shell
14+
command: |
15+
bundle exec jekyll build
16+
17+
# Deploy to Gitpages
18+
- type: shell
19+
command: |
20+
bundle exec s3_website push
21+
22+
prod:
23+
working_directory: /project/workspace/
24+
docker:
25+
- image: lakhanmandloi/sunbird-ubuntu-full
26+
steps:
27+
28+
#Checkout
29+
- checkout
30+
31+
# Add SSH Key
32+
- add_ssh_keys:
33+
fingerprints:
34+
- "95:dd:d1:b9:84:d7:bc:96:88:c2:f9:0f:4d:96:fc:17"
35+
#Add User
36+
- type: shell
37+
command: |
38+
git config --global user.email "[email protected]"
39+
git config --global user.name "Lakhan Mandloi"
40+
41+
# Pull Code from staging site
42+
- type: shell
43+
command: |
44+
cd ..
45+
mkdir downloads
46+
cd downloads
47+
aws s3 sync --delete s3://sunbird-trial/ .
48+
49+
# Deploy to Gitpages
50+
- type: shell
51+
command: |
52+
cd ..
53+
mkdir deploy
54+
cd deploy
55+
git clone [email protected]:lakhanmandloi/sunbird-commons.git
56+
cd sunbird-commons
57+
git checkout gh-pages
58+
cp -R .git/ ../
59+
rm -rf *
60+
cd ..
61+
cp -R ../downloads/* sunbird-commons/
62+
cp -R .git/ sunbird-commons/
63+
cd sunbird-commons/
64+
git add -A
65+
git commit -m "$CIRCLE_TAG"
66+
git push origin gh-pages
67+
68+
workflows:
69+
version: 2
70+
build_and_deploy:
71+
jobs:
72+
- staging:
73+
filters:
74+
tags:
75+
only: /^dev.*/
76+
branches:
77+
ignore:
78+
- master
79+
- gh-pages
80+
- prod:
81+
filters:
82+
tags:
83+
only: /^prod.*/
84+
branches:
85+
ignore:
86+
- master
87+
- gh-pages

.gitignore

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#=======================================
2+
# Exclude Site Generated
3+
#=======================================
4+
_site
5+
#=======================================
6+
# Exclude Node Modules
7+
#=======================================
8+
node_modules/**
9+
package-lock.json
10+
#=======================================
11+
# Exclude SASS Cache
12+
#=======================================
13+
.sass-cache
14+
#=======================================
15+
# Exclude File types & Files
16+
#=======================================
17+
.Trashes
18+
ehthumbs.db
19+
Thumbs.db
20+
Desktop.ini
21+
*.log
22+
.DS_Store
23+
npm-debug.log
24+
Gemfile.lock
25+
node.txt
26+
.idea
27+
yarn.lock
28+

Gemfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
source 'https://rubygems.org'
2+
gem 'jekyll-gist', '1.1.0'
3+
gem 'jekyll', '2.5.3'
4+
gem 'rdiscount'
5+
gem 'kramdown'
6+
gem 'sass'
7+
gem 'nokogiri'
8+
gem 's3_website'
9+
gem 'html-proofer'
10+
gem 'faraday'
11+
gem 'jekyll-redirect-from'

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# sunbird-commons
2+
3+
## What is Sunbird?
4+
Sunbird is a next-generation scalable open-source learning solution for teachers and tutors. Built for the 21st century with state-of-the-art technology, Sunbird runs natively in cloud/mobile environments. The open-source governance of Sunbird allows a massive community of nation-builders to co-create and extend the solution in novel ways.
5+
6+
## What is the project mission?
7+
Project Sunbird has a mission to improve learning outcomes for 200 million children across India. This is a multi-dimensional problem unique to the multi-lingual offline population of India (and other developing countries). It's not a problem of any single organization or stakeholder and it cannot be realistically addressed by individual effort.
8+
9+
Project Sunbird is a multi-year, multi-stakeholder open, iterative and collaborative approach to bring together the best minds in pursuit of this audacious goal.
10+
11+
## Getting Started
12+
To get started with Sunbird, please try out our demo site at: https://demo.open-sunbird.org/
13+
14+
## Reporting Issues
15+
We have an open and active [issue tracker](https://github.com/project-sunbird/sunbird-commons/issues). Please report any issues or you find.

_config.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Site settings
2+
title: Sunbird
3+
name: Sunbird
4+
5+
description: "Sunbird Site"
6+
environment: production
7+
permalink: pretty
8+
markdown: kramdown
9+
highlighter: pygments
10+
safe: false
11+
ga: UA-106552125-1
12+
13+
exclude:
14+
- vendor
15+
- .gitignore
16+
- README.md
17+
- ingredients
18+
- js/components
19+
- js/stores
20+
- js/actions
21+
- js/support
22+
- node_modules
23+
- package.json
24+
- package-lock.json
25+
- node.txt
26+
- Gemfile
27+
- Gemfile.lock
28+
- circle.yml
29+
- s3_website.yml
30+
- staging
31+
32+
sass:
33+
sass_dir: css

_includes/footer.html

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<footer class="footer">
2+
<div class="footer__top">
3+
<div class="container">
4+
<div class="row">
5+
6+
<div class="col-md-4 col-sm-12">
7+
</div>
8+
9+
<div class="col-md-2 col-sm-6 ">
10+
<ul>
11+
<li><a href="/about/">About Sunbird</a></li>
12+
<li><a href="/contact/">Contact Us</a></li>
13+
<li><a href="/privacy-policy/">Privacy Policy</a></li>
14+
</ul>
15+
</div>
16+
17+
<div class="col-md-2 col-sm-6 sideline">
18+
<ul>
19+
<li><a href="/docs/">Documentation</a></li>
20+
<li><a href="/features/">Features</a></li>
21+
</ul>
22+
</div>
23+
24+
<div class="col-md-2 col-sm-12">
25+
</div>
26+
27+
</div>
28+
</div>
29+
</footer>

_includes/head.html

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<head>
2+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
3+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
4+
<base href="/">
5+
<meta name="apple-mobile-web-app-capable" content="yes" />
6+
<meta name="apple-touch-fullscreen" content="yes" />
7+
<link rel="icon" type="image/png" href="img/favicon/favicon-16x16.png" sizes="16x16">
8+
<meta name="msapplication-TileColor" content="#65d3f7">
9+
<meta name="msapplication-TileImage" content="img/favicon/mstile-150x150.png">
10+
11+
<title>{{site.name}} {{page.page_title}}</title>
12+
<meta name="description" content="{{site.description}} {{page.description}}"/>
13+
14+
<meta http-equiv="cache-control" content="max-age=0" />
15+
<meta http-equiv="cache-control" content="no-cache" />
16+
<meta http-equiv="Cache-Control" content="no-store" />
17+
<meta http-equiv="pragma" content="no-cache" />
18+
<meta name="last-modified" content="{{ site.time }}">
19+
<meta http-equiv="Expires" content="600" />
20+
21+
22+
23+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,600,700" >
24+
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" >
25+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
26+
27+
<link rel="stylesheet" href="css/owl/owl.carousel.min.css?{{ site.time | | date: '%d%m%Y'}}" />
28+
<link rel="stylesheet" href="css/style.css?{{ site.time | | date: '%d%m%Y'}}" />
29+
30+
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
31+
<script type="text/javascript" src="js/bootstrap.min.js?{{ site.time | | date: '%d%m%Y'}}"></script>
32+
<script type="text/javascript" src="js/owl.carousel.min.js?{{ site.time | | date: '%d%m%Y'}}"></script>
33+
34+
<script>
35+
window.dataLayer = window.dataLayer || [];
36+
function gtag(){dataLayer.push(arguments)};
37+
gtag('js', new Date());
38+
39+
gtag('config', '{{site.ga}}');
40+
</script>
41+
</head>

_includes/header.html

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<header>
2+
<div class="container">
3+
<div class="row">
4+
<div class="col-sm-2 col-xs-8 logo">
5+
<a href="/" >
6+
<img src="/img/sunbird-logo.png" alt="logo">
7+
</a>
8+
</div>
9+
<div class="col-xs-4 text-right visible-xs mobile-menu">
10+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#mainNav">
11+
<span class="sr-only">Toggle navigation</span>
12+
<i class="material-icons">menu</i>
13+
</button>
14+
</div>
15+
<div class="col-xs-12 col-sm-7 text-right navbar main-menu">
16+
<div class="navbar-header">
17+
<div class="collapse navbar-collapse" id="mainNav" >
18+
<ul class="nav navbar-nav">
19+
<li class=""><a href="/about/">About</a></li>
20+
<li class=""><a href="/features/">Features</a></li>
21+
<li class=""><a href="/docs/">Documentation</a></li>
22+
<li class=""><a href="/participate/">Participate</a></li>
23+
<li class=""><a href="https://github.com/project-sunbird" target="_blank">Source Code</a></li>
24+
<li class=""><a href="/contact/">Contact Us</a></li>
25+
</ul>
26+
</div>
27+
</div>
28+
</div>
29+
</div>
30+
</div>
31+
</header>

0 commit comments

Comments
 (0)