forked from jerryseigle/nexmo-developer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.22 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: ruby
cache: bundler
services:
- postgresql
addons:
postgresql: '9.4'
before_install:
- gem update --system
- gem update bundler
install: bundle install --deployment --path vendor/bundle && yarn install
env:
- OAS_PATH="_open_api/api_specs"
before_script:
- |
if [ -z "$SSH_KEY_REQUIRED" ]; then
echo "Skipping setting up SSH Key";
else
echo "Setting up SSH key";
declare -r SSH_FILE="$(mktemp -u $HOME/.ssh/XXXXX)"
openssl aes-256-cbc -K $encrypted_293bfe86302a_key -iv $encrypted_293bfe86302a_iv -in "github_deploy_key.enc" -out "$SSH_FILE" -d
chmod 600 "$SSH_FILE" \
&& printf "%s\n" \
"Host github.com" \
" IdentityFile $SSH_FILE" \
" LogLevel ERROR" >> ~/.ssh/config
fi
- bundle exec rake db:setup
script:
- bundle exec rake spec
- bundle exec rubocop
- bundle exec rake ci:verify_pages
- bundle exec rake ci:verify_navigation
- bundle exec rake ci:verify_oas_reference
- bundle exec rake ci:verify_error_urls_resolve
- RAILS_ENV=test bundle exec rake webpacker:compile
- ./node_modules/.bin/mdspell -r -n -a --en-us '_documentation/**/*.md' '_partials/*.md' '_partials/**/*.md' '_modals/**/*.md' '_tutorials/**.md'