Skip to content

Commit 056a3b3

Browse files
authored
Merge pull request #3325 from codeigniter4/develop
4.0.4 Ready code
2 parents f5ca37a + 5553317 commit 056a3b3

File tree

291 files changed

+9706
-2043
lines changed

Some content is hidden

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

291 files changed

+9706
-2043
lines changed

.github/scripts/deploy-appstarter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ git checkout master
2020
rm -rf *
2121

2222
# Copy common files
23-
releasable='app public writable env license.txt spark .gitignore'
23+
releasable='app public writable env license.txt spark'
2424
for fff in $releasable ; do
2525
cp -Rf ${SOURCE}/$fff ./
2626
done

.github/scripts/deploy-framework

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ git checkout master
2020
rm -rf *
2121

2222
# Copy common files
23-
releasable='app public writable env license.txt spark .gitignore system'
23+
releasable='app public writable env license.txt spark system'
2424
for fff in $releasable ; do
2525
cp -Rf ${SOURCE}/$fff ./
2626
done
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: API Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- 'develop'
7+
paths:
8+
- 'system/**'
9+
10+
jobs:
11+
12+
build:
13+
name: Generate API Docs
14+
if: (github.repository == 'codeigniter4/CodeIgniter4')
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Setup credentials
19+
run: |
20+
git config --global user.email "action@github.com"
21+
git config --global user.name "${GITHUB_ACTOR}"
22+
23+
- name: Checkout source
24+
uses: actions/checkout@v2
25+
with:
26+
path: source
27+
28+
- name: Checkout api
29+
uses: actions/checkout@v2
30+
with:
31+
repository: codeigniter4/api
32+
token: ${{ secrets.ACCESS_TOKEN }}
33+
path: api
34+
35+
- name: Setup PHP
36+
uses: shivammathur/setup-php@v2
37+
with:
38+
php-version: '7.2'
39+
extensions: intl, json, mbstring, mysqlnd, xdebug, xml, sqlite3
40+
coverage: xdebug
41+
42+
- name: Download GraphViz for phpDocumentor
43+
run: |
44+
sudo apt-get install -yq graphviz
45+
46+
- name: Download phpDocumentor
47+
run: |
48+
cd ./source
49+
curl \
50+
-L https://github.com/phpDocumentor/phpDocumentor/releases/download/v2.9.1/phpDocumentor.phar \
51+
-o admin/phpDocumentor.phar
52+
53+
- name: Prepare API
54+
run: |
55+
cd ./api
56+
rm -rf ./api/docs*
57+
mkdir -p ./api/docs
58+
git reset --hard master
59+
60+
- name: Make the new API docs
61+
run: |
62+
cd ./source
63+
chmod +x admin/phpDocumentor.phar
64+
admin/phpDocumentor.phar
65+
cp -R ${GITHUB_WORKSPACE}/source/api/build/* ${GITHUB_WORKSPACE}/api/docs
66+
67+
- name: Deploy API
68+
run: |
69+
cd ./api
70+
git add .
71+
git commit -m "API sync for ${GITHUB_SHA}"
72+
git push

.github/workflows/docs_nightly.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# When changes are pushed to the develop branch,
2+
# build the current version of the docs and
3+
# deploy to gh-pages so that our development
4+
# docs are always up to date.
5+
name: "Update development docs"
6+
7+
on:
8+
push:
9+
branches:
10+
- 'develop'
11+
paths:
12+
- 'user_guide_src/**'
13+
14+
jobs:
15+
build:
16+
if: (github.repository == 'codeigniter4/CodeIgniter4')
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
# Build the current docs
24+
- uses: ammaraskar/sphinx-action@master
25+
with:
26+
docs-folder: "user_guide_src/"
27+
28+
# Create an artifact of the html output
29+
- uses: actions/upload-artifact@v2
30+
with:
31+
name: HTML Documentation
32+
path: user_guide_src/build/html/
33+
34+
# Commit changes to the gh-pages branch
35+
- name: Commit documentation changes
36+
run: |
37+
git clone https://github.com/codeigniter4/CodeIgniter4.git --branch gh-pages --single-branch gh-pages
38+
cp -r user_guide_src/build/html/* gh-pages/
39+
cd gh-pages
40+
git config --local user.email "action@github.com"
41+
git config --local user.name "${GITHUB_ACTOR}"
42+
git add .
43+
git commit -m "Update documentation" -a || true
44+
# The above command will fail if no changes were present, so we ignore
45+
# that.
46+
47+
- name: Push changes
48+
uses: ad-m/github-push-action@master
49+
with:
50+
branch: gh-pages
51+
directory: gh-pages
52+
github_token: ${{ secrets.ACCESS_TOKEN }}

.github/workflows/userguide_ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Builds the user guide and lets the contributor know of
2+
# any user guide build errors.
3+
name: UserGuide CI
4+
5+
on:
6+
pull_request:
7+
paths:
8+
- 'user_guide_src/**'
9+
10+
jobs:
11+
syntax_check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: ammaraskar/sphinx-action@master
16+
with:
17+
docs-folder: user_guide_src

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ writable/uploads/*
6262

6363
writable/debugbar/*
6464

65+
writable/**/*.db
66+
writable/**/*.sqlite
67+
6568
php_errors.log
6669

6770
#-------------------------
6871
# User Guide Temp Files
6972
#-------------------------
7073
user_guide_src/build/*
71-
user_guide_src/cilexer/build/*
72-
user_guide_src/cilexer/dist/*
73-
user_guide_src/cilexer/pycilexer.egg-info/*
7474

7575
#-------------------------
7676
# Test Files

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ before_install:
4242
- mysql -e "CREATE DATABASE IF NOT EXISTS test;" -uroot;
4343
- mysql -e "SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = 'test';" -uroot
4444
- psql -c 'CREATE DATABASE test;' -U postgres
45+
- sudo apt-get install ghostscript
46+
- yes | pecl install imagick
4547

4648
before_script:
4749
- echo 'extension = memcached.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

0 commit comments

Comments
 (0)