forked from RocketChat/docs-old
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests and update travis.yml (RocketChat#520)
- Loading branch information
1 parent
2b53bb0
commit 490729e
Showing
5 changed files
with
65 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,16 @@ | ||
language: node_js | ||
node_js: '4' | ||
install: | ||
- npm i -g gulp | ||
env: | ||
- CXX=g++-4.8 | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-4.8 | ||
language: ruby | ||
rvm: | ||
- 2.4 | ||
sudo: false | ||
|
||
branches: | ||
only: | ||
- master | ||
before_script: | ||
- chmod 600 .travis/deploy-key | ||
- mv .travis/deploy-key ~/.ssh/id_rsa | ||
- git clone https://github.com/RocketChat/Rocket.Chat.Docs.Generator.git /tmp/generator | ||
install: | ||
- bundle install --jobs=3 --retry=3 --deployment | ||
env: | ||
global: | ||
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer | ||
script: | ||
- export SRC_DIR=`pwd` | ||
- cd /tmp/generator | ||
- ln -s $SRC_DIR src | ||
- npm i | ||
- gulp build | ||
before_install: | ||
- echo -e "Host $DEPLOY_HOST\n\tHostName $DEPLOY_HOST\n\tStrictHostKeyChecking no\n\tUser github\n\tIdentityFile ~/.ssh/id_rsa\n" >> ~/.ssh/config | ||
- openssl aes-256-cbc -K $encrypted_0da79f095df9_key -iv $encrypted_0da79f095df9_iv -in .travis/deploy-key.enc -out .travis/deploy-key -d | ||
- bundle exec mdl ./ -i -g | ||
- bundle exec "rake test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'github-pages', group: :jekyll_plugins | ||
source 'https://rubygems.org' | ||
gem 'github-pages', '>=104', group: :jekyll_plugins | ||
|
||
group :development, :test do | ||
gem 'rake' | ||
gem 'anemone' | ||
gem "html-proofer" | ||
gem 'mdl' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,4 @@ whitelist: | |
exclude: | ||
- Gemfile | ||
- Gemfile.lock | ||
- vendor |