Skip to content

Commit 9854d2b

Browse files
committed
Merge origin/master
2 parents 0ae36cd + d915908 commit 9854d2b

File tree

3 files changed

+78
-21
lines changed

3 files changed

+78
-21
lines changed

.travis.yml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
language: php
22
php:
3+
#- 5.2
34
- 5.3
4-
- 5.4
5-
- 5.5
5+
#- 5.4
66
env:
77
global:
8-
secure: HxNuZO2wWngETP4ZAJN/IA4SCG9C3yw8hV4laJOrb9xXRv8w1YI4xLKUTDEK8H1tg3f0Yh4943f22aDPoXUu8oG913yljbrjMPXM+30FkbxPLOu4rViepjV1ZPJ0+aw+fGvNfDWBfeNx32Ooi9BeK5cpGTKeLgzAJCeG2mROPpo=
8+
#secure: "HxNuZO2wWngETP4ZAJN/IA4SCG9C3yw8hV4laJOrb9xXRv8w1YI4xLKUTDEK8H1tg3f0Yh4943f22aDPoXUu8oG913yljbrjMPXM+30FkbxPLOu4rViepjV1ZPJ0+aw+fGvNfDWBfeNx32Ooi9BeK5cpGTKeLgzAJCeG2mROPpo="
9+
#secure: "vLqv9UpmPontcizx0ncbiaV0CJ6C54sFcJw1g4Csnwz7q3DJyHtGtjZLysKzyUzbXLzcSGWZfkeqbYXIuI7fdtIfBTSb9Zw39tPDItVzq9T+wyzkCv98F+LI4Py2UJR+dQNOzB+2s0IrAQZt3vsKnJbELKwQ1LWVkNXOu7eCIOo="
10+
#secure: "N1TGV9fQSoXhWD0AUMLF4PEWE99ZHA3ypjARJZX3fsycRD4YUbCcIdnKld5rM/4meeVN4kULDci5bcwAv3GrZY0l4lYNFpnInoyOU6B8PFG0795feacUtj8T8GBs9C4P/9ikLkK9BBXEacQ+i/E2Lvv50QJ17RDAbmvXB3gWDvc="
11+
#secure: "qZjPMjuQN2a4H2fQ9SSSfgAYRIoRmSTOxMF06CjeTQfIgimwmCayQYVVSKrXQorxpzHPjjg4vEs92oFuBE2nXDN0J4fA8u/E3Qvm4Mr9qWFn/JoOX+/xsYurPw9+rIjr75lT/b8cK38tdgqm7TmMIfsNY4RxHtOhXjt6hWGhUlY="
12+
secure: "aDIYEmgxoF/+2vwPdvmbxFKMoz8pA9vtvemehyLNvH3LF05RgFiwNNv+7Lvy127p4Fxp3VBK+ZLKUEEL1gdpevzgni9EigpK8YZbIVHXRL3U+1eP9rcnjuGF9pKuB4kB2ivzoprcalg1ZDI9PnRYRDE4YUTHJiEN2MmLys1QWdc="
913
cache:
1014
directories:
1115
- node_modules
@@ -22,8 +26,22 @@ script:
2226
- grunt jshint
2327
- grunt lintPHP
2428
after_success:
29+
# Install the Heroku gem (or the Heroku toolbelt)
30+
- gem install heroku
31+
# Add your Heroku git repo:
32+
- git remote add heroku [email protected]:redux-premium.git
33+
# Turn off warnings about SSH keys:
34+
- echo "Host heroku.com" >> ~/.ssh/config
35+
- echo " StrictHostKeyChecking no" >> ~/.ssh/config
36+
- echo " CheckHostIP no" >> ~/.ssh/config
37+
- echo " UserKnownHostsFile=/dev/null" >> ~/.ssh/config
38+
# Clear your current Heroku SSH keys:
39+
- heroku keys:clear
40+
# Add a new SSH key to Heroku
41+
- yes | heroku keys:add
42+
after_script:
2543
#- ./bin/commit-uncompressed-files.sh
26-
- ./bin/update-gh-pages.sh
44+
- ./bin/update-mirrors-docs.sh
2745
notifications:
2846
email:
2947
recipients:
@@ -33,13 +51,4 @@ notifications:
3351
branches:
3452
except:
3553
- gh-pages
36-
- setup
37-
deploy:
38-
provider: heroku
39-
app: redux-premium
40-
api_key:
41-
secure: S8IDcJnGxUcOS7QnSVON5imakmLdmHV92zVy7GKAbjK0ZBNp0cSLhT8dKD2ayjVsY454y8WBoK0byJiUpjtd72QIM1KAMcnklrnssj+0D1uTvW+q/qkC9yQzJzjhw+XH5T8CNamjbJmiYjHoQ7VcpLwTd23RgRMOeBHfnBLjLSo=
42-
run:
43-
- "rake db:migrate"
44-
- restart
45-
- "rake cleanup"
54+
- setup

bin/update-gh-pages.sh renamed to bin/update-codex.sh

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_JOB_NUMBER" == *.1 ]]; then
44

5+
# update the mirror repo for composer/packagist
6+
echo -e "Pushing to composer mirror\n"
7+
git push --mirror https://${GH_TOKEN}@github.com/redux-framework/redux-framework.git
8+
9+
# Re-Deploy the heroku demo app and pull the newest code
10+
echo -e "Starting dev demo push to Heroku\n"
11+
git clone [email protected]:redux-premium.git redux-premium
12+
cd redux-premium
13+
git remote add heroku [email protected]:redux-premium.git
14+
git reset HEAD~; git push -f heroku master;
15+
cd ..
16+
rm -fr redux-premium
17+
518
echo -e "Starting to update documentation\n"
619

720
# Make sure we don't have any old files
@@ -22,13 +35,6 @@ if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_JOB_NUMBER" == *.1 ]]; then
2235
# Publish the docs to gh-pages
2336
grunt gh-pages:travis
2437

25-
# Re-Deploy the heroku demo app and pull the newest code
26-
#gem install heroku
27-
#git clone [email protected]:redux-premium.git
28-
#cd redux-premium
29-
#git reset HEAD~; git push -f heroku master;
3038

31-
# update the mirror repo for composer/packagist
32-
git push --mirror https://github.com/redux-framework/redux-framework.git
3339

3440
fi

bin/update-mirrors-docs.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/usr/bin/env bash
2+
#&& "$TRAVIS_PHP_VERSION" >= 5.3
3+
if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_JOB_NUMBER" == *.1 ]]; then
4+
5+
# Update the mirror repo for composer/packagist
6+
git push --mirror https://${GH_TOKEN}@github.com/redux-framework/redux-framework.git
7+
8+
# Re-Deploy the heroku demo app and pull the newest code
9+
git clone [email protected]:redux-premium.git
10+
cd redux-premium
11+
git reset HEAD~; git push -f heroku master;
12+
13+
cd ..
14+
15+
# cd ..
16+
# rm -fr $HOME/redux-premium
17+
18+
echo -e "Starting to update documentation\n"
19+
20+
# Make sure we don't have any old files
21+
rm -fr $HOME/docs
22+
23+
# Install phpDocumentor
24+
pear channel-discover pear.phpdoc.org
25+
pear install phpdoc/phpDocumentor
26+
pear install Image_GraphViz
27+
phpenv rehash #Have to run this for travis
28+
29+
# Generate the docs
30+
grunt phpdocumentor
31+
32+
# Copy the github CNAME file to the docs
33+
cp bin/CNAME docs/
34+
35+
# Publish the docs to gh-pages
36+
grunt gh-pages:travis
37+
38+
# Clean out the docs directory
39+
#git rm -fr $HOME/docs/
40+
41+
42+
fi

0 commit comments

Comments
 (0)