Skip to content

Commit 6c914cc

Browse files
Migrating from TwilioDevEd to Twilio-samples
1 parent 1c21427 commit 6c914cc

File tree

8,026 files changed

+134103
-2
lines changed

Some content is hidden

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

8,026 files changed

+134103
-2
lines changed

.env.example

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# The node path is different in some operating systems
2+
# NODE_PATH should be the path where you installed Node
3+
export NODE_TLS_REJECT_UNAUTHORIZED=0
4+
export FAKE_CERT_PATH=/your_absolute_path/twilio-api-faker/keystore/twilio_fake.pem
5+
export GRADLE_OPTS="-Dorg.gradle.daemon=true"

.eslintrc.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es6": true,
6+
"node": true
7+
},
8+
"extends": [
9+
"eslint:recommended",
10+
"google",
11+
"prettier"
12+
],
13+
"plugins": [
14+
"prettier"
15+
],
16+
"rules": {
17+
"prettier/prettier": ["error", {
18+
"singleQuote": true,
19+
"trailingComma": "es5"
20+
}],
21+
"no-console": 0,
22+
"no-unused-vars": 0,
23+
"no-undef": 0,
24+
"require-jsdoc": 0,
25+
"no-useless-escape": 0,
26+
"guard-for-in": 0,
27+
"new-cap": 0,
28+
"prefer-const": "error",
29+
"no-invalid-this": 0
30+
}
31+
}

.flake8

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[flake8]
2+
exclude =
3+
./tools/*,
4+
./venv/*,
5+
./twiml/*,
6+
./guides/*,
7+
./testable_snippets/*,
8+
*/testable_snippets/*
9+
10+
ignore =
11+
# D100: Missing docstring in public module
12+
D100,
13+
# H306: imports not in alphabetical order (time, os)
14+
H306,

.gitignore

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
App.app/
6+
7+
# Runtime data
8+
pids
9+
*.pid
10+
*.seed
11+
12+
# Directory for instrumented libs generated by jscoverage/JSCover
13+
lib-cov
14+
15+
# Coverage directory used by tools like istanbul
16+
coverage
17+
18+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
19+
.grunt
20+
21+
# node-waf configuration
22+
.lock-wscript
23+
24+
# Compiled binary addons (http://nodejs.org/api/addons.html)
25+
build/Release
26+
27+
# Dependency directory
28+
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
29+
node_modules
30+
31+
# Optional npm cache directory
32+
.npm
33+
34+
# Optional REPL history
35+
.node_repl_history
36+
37+
# Miscellaneous
38+
.DS_Store
39+
*.*~
40+
41+
#IDEs
42+
*.idea
43+
*/target
44+
*.iml
45+
.gradle
46+
nbactions.xml
47+
*.class
48+
*.sw[op]
49+
.vscode
50+
51+
# Testing
52+
/.env
53+
/vendor/
54+
/nuget/
55+
testable_snippets/
56+
/composer.json
57+
/composer.lock
58+
/tools/dependencies/
59+
migrate.ps1
60+
61+
# Custom Ruby Gems
62+
Gemfile*
63+
jreyes-example.*
64+
65+
venv

.phplint-cache

+1
Large diffs are not rendered by default.

.rubocop.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
AllCops:
2+
TargetRubyVersion: '2.2'
3+
Exclude:
4+
- 'testable_snippets/**/*'
5+
- '*/testable_snippets/**/*'
6+
- 'tools/**/*'
7+
- 'twilio-api-faker/**/*'
8+
Style/FileName:
9+
Enabled: false
10+
Style/FrozenStringLiteralComment:
11+
Enabled: false
12+
Metrics/BlockLength:
13+
Enabled: false

.style.yapf

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[style]
2+
dedent_closing_brackets = True
3+
join_multiple_lines = False

.travis.yml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
dist: trusty
2+
sudo: required
3+
4+
rvm:
5+
- 2.2.1
6+
7+
before_install:
8+
- ./install_travis_dependencies.sh
9+
10+
install:
11+
- gem install json colorize nokogiri rubocop
12+
- git clone https://github.com/TwilioDevEd/twilio-api-faker.git
13+
- sudo cp twilio-api-faker/keystore/twilio_fake.pem /usr/local/share/ca-certificates/twilio_fake.crt
14+
- sudo update-ca-certificates
15+
16+
script:
17+
- ./run_twilio_api_faker.sh
18+
- ruby tools/snippet-testing/snippet_tester.rb -i
19+
20+
env:
21+
global:
22+
- NODE_PATH=/usr/local/lib/node_modules
23+
- NODE_TLS_REJECT_UNAUTHORIZED=0
24+
- FAKE_CERT_PATH=~/build/TwilioDevEd/api-snippets/twilio-api-faker/keystore/twilio_fake.pem
25+
- GRADLE_OPTS="-Dorg.gradle.daemon=true"
26+
- BASH=/bin/bash
27+
- BASH_SOURCE=/usr/local/bin/virtualenvwrapper.sh
28+
29+
matrix:
30+
include:
31+
- env: SNIPPET_LANGUAGE=python:curl
32+
dist: precise
33+
- env: SNIPPET_LANGUAGE=java6
34+
jdk: oraclejdk7
35+
- env: SNIPPET_LANGUAGE=java7
36+
jdk: oraclejdk8
37+
- language: csharp
38+
mono: latest
39+
env: SNIPPET_LANGUAGE=csharp:ruby
40+
- env: SNIPPET_LANGUAGE=node:php
41+
42+
addons:
43+
hosts:
44+
- api.twilio.com
45+
- chat.twilio.com
46+
- fax.twilio.com
47+
- ip-messaging.twilio.com
48+
- lookups.twilio.com
49+
- messaging.twilio.com
50+
- monitor.twilio.com
51+
- notifications.twilio.com
52+
- notify.twilio.com
53+
- preview.twilio.com
54+
- pricing.twilio.com
55+
- sync.twilio.com
56+
- taskrouter.twilio.com
57+
- video.twilio.com
58+
- wireless.twilio.com
59+
60+
notifications:
61+
slack:
62+
rooms:
63+
secure: Lbt/FIOBmBxqSH4aj4cctd+ygAWWN+IoEGRC1f7Wn1mgciSAWCGs6krUAqsxDCO+mU0bV0EdO2SNaB5vlmMCBA0tti6KYzR4M4OgkM/KwIUk1MBJcaD2gpMMbMK66xG74b5arPuO7GIWMjHgScKo04LGGeYOcw7RJZwB6CY+3eyFo4HLVkuWizNC2Qw2yq/2F///QywljWMbvJy1dUs0Ax3KG6NW8aRhj98TN/vnVAwC7BKCWYD0QQY+8qKf4Cbmt6W4riNufqm8ZQdLdgbRnLdKKxHUCEkARPzLvJhLrR4fB70hXI8iWcms0CcLPf2kjG8+iJso9MCai1SGdi4+duAoBUxHzCQTK2Q+8t7LKrfaOm9j0p46tk9VcI9GLUzVgE5XZpqssv+dqvf1tB/d+XTZu2M4I1fmZm0O7uo3XSWO25Vob6sqHKoRe1E0Ums4yCv5ZiMWuzvFan4CPIoC2Gxn1ZFWPU+//SDHolKIAG5j6bx9v+66UOv7EkBQVlW9CbZmK+12mRL0+gNxfWmFW23tgJhnuEYmJHqEGi3GWjzBY8YTQ5eiUJQXxV/NZknwAB4d/cHDEvbBlVrURqXG/E60ecKNw6QqTO8HMZXP8ROBPzKPSnwsY6TDPf1rrH3D9N4o9JyEhquuWG4NSovOcrzopgoNyfaEWbj0cLwxxs8=
64+
on_failure: always
65+
on_success: change
66+
67+
cache:
68+
apt: true
69+
pip: true
70+
directories:
71+
- $HOME/.gradle/caches/
72+
- $HOME/.gradle/wrapper/
73+
74+
before_cache:
75+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
76+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/

0 commit comments

Comments
 (0)