Commit 39500fff authored by carlosperate's avatar carlosperate

Update CI server scripts to build documentation.

parent 7afc4a81
...@@ -20,7 +20,7 @@ init: ...@@ -20,7 +20,7 @@ init:
- cmd: python -c "import struct; print(struct.calcsize('P') * 8)" - cmd: python -c "import struct; print(struct.calcsize('P') * 8)"
# Ensure node x86 (appveyor powershell script to switch installed versions) # Ensure node x86 (appveyor powershell script to switch installed versions)
- ps: Install-Product node 0.12.7 x86 - ps: Install-Product node 5.1.0 x86
- cmd: node --version - cmd: node --version
- cmd: npm --version - cmd: npm --version
...@@ -35,13 +35,15 @@ install: ...@@ -35,13 +35,15 @@ install:
# Install python dependencies # Install python dependencies
- cmd: pip install https://dl.dropboxusercontent.com/u/74034/ardublockly-dep/win/py2exe-0.6.10a1-cp27-none-win32.whl - cmd: pip install https://dl.dropboxusercontent.com/u/74034/ardublockly-dep/win/py2exe-0.6.10a1-cp27-none-win32.whl
- cmd: pip install mock - cmd: pip install mock
- cmd: pip install mkdocs
# Build Ardublockly # Build Ardublockly
- cmd: python package\build_docs.py
- cmd: python package\build_py2exe.py - cmd: python package\build_py2exe.py
- cmd: cd package\electron - cmd: cd package\electron
- cmd: npm install - cmd: npm install
- cmd: npm run release - cmd: npm run release
- cmd: cd ..\.. - cmd: cd ..\..\
- cmd: python package\pack_ardublockly.py - cmd: python package\pack_ardublockly.py
- cmd: dir - cmd: dir
......
...@@ -9,7 +9,7 @@ before_install: ...@@ -9,7 +9,7 @@ before_install:
# Install python # Install python
- brew update - brew update
- brew install python - brew install python2
- brew link --overwrite python - brew link --overwrite python
- pip install --upgrade pip - pip install --upgrade pip
- PATH=/usr/local/bin:$PATH - PATH=/usr/local/bin:$PATH
...@@ -20,6 +20,7 @@ before_install: ...@@ -20,6 +20,7 @@ before_install:
- brew install libcouchbase - brew install libcouchbase
- pip install mock - pip install mock
- pip install mkdocs
# Install node.js # Install node.js
- brew unlink node - brew unlink node
...@@ -29,14 +30,12 @@ before_install: ...@@ -29,14 +30,12 @@ before_install:
# Build and Pack ardublockly # Build and Pack ardublockly
install: install:
#- cd package/pyinstaller/bootloader - python package/build_docs.py
#- python ./waf configure build install
#- cd ../../../
- python package/build_pyinstaller.py mac - python package/build_pyinstaller.py mac
- cd package/electron - cd package/electron
- npm install - npm install
- npm run release - npm run release
- cd ../.. - cd ../../
- python package/pack_ardublockly.py - python package/pack_ardublockly.py
- du -sk releases/ - du -sk releases/
...@@ -58,7 +57,7 @@ deploy: ...@@ -58,7 +57,7 @@ deploy:
acl: public_read acl: public_read
on: on:
repo: carlosperate/ardublockly repo: carlosperate/ardublockly
branch: [master, travisci, electron] all_branches: true
notifications: notifications:
email: email:
......
...@@ -5,7 +5,7 @@ machine: ...@@ -5,7 +5,7 @@ machine:
# Indicating node also offers advantage of bypassing virtual environments # Indicating node also offers advantage of bypassing virtual environments
node: node:
version: 0.12.4 version: 5.1.0
# Override /etc/hosts # Override /etc/hosts
hosts: hosts:
...@@ -21,22 +21,22 @@ checkout: ...@@ -21,22 +21,22 @@ checkout:
# Customize dependencies # Customize dependencies
dependencies: dependencies:
pre: pre:
#- sudo apt-get update -qq
# OS extra info # OS extra info
- uname -a - uname -a
- ldd --version - ldd --version
- lsb_release -d
- python --version - python --version
- python -c "import struct; print(struct.calcsize('P') * 8)" - python -c "import struct; print(struct.calcsize('P') * 8)"
# Install tkinker and mock # Install tkinker and mock
- sudo apt-get install -y python-support - sudo apt-get install -y python-support
- sudo apt-get install python-tk - sudo apt-get install -y python-tk
- sudo pip install mock - sudo pip install mock
- sudo pip install mkdocs
# Install node.js # Install node.js
- curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash - #- curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
- sudo apt-get install -y nodejs #- sudo apt-get install -y nodejs
- node --version - node --version
- npm --version - npm --version
...@@ -45,6 +45,7 @@ dependencies: ...@@ -45,6 +45,7 @@ dependencies:
override: override:
# Build and pack # Build and pack
- python package/build_docs.py
- python package/build_pyinstaller.py linux - python package/build_pyinstaller.py linux
- cd package/electron && npm install - cd package/electron && npm install
- cd package/electron && npm run release - cd package/electron && npm run release
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment