Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(browserstack): bring up browserstack #477

Merged
merged 16 commits into from
Aug 8, 2017
Merged
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ _config.yml

node_modules

.idea
.idea

.directory
51 changes: 50 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,54 @@ script:
- git add --all .
- git commit -m "Travis Auto Tester for Material Theme"
- git push --quiet --force https://${GitHubKEY}@github.com/${GitHubRepo}.git

- cd ..
- cd ..
- npm install selenium-webdriver
- sed -i "s/{bs_user}/${BrowserstackUser}/g" test.js
- sed -i "s/{bs_key}/${BrowserstackKey}/g" test.js
- sed -i "s/{bs_project}/${BrowserstackProject}/g" test.js
- sed -i "s/{bs_build_number}/${TRAVIS_BUILD_NUMBER}/g" test.js
- sed -i "s/{bs_commit}/${TRAVIS_COMMIT}/g" test.js
- mkdir -p ./_output/img/OSX_Safari_10.0
- node test.js _config/OSX_Safari_10.0 OSX_Safari_10.0
- mkdir -p ./_output/img/w10_chrome_60.0
- node test.js _config/w10_chrome_60.0 w10_chrome_60.0
- mkdir -p ./_output/img/w10_Edge_15
- node test.js _config/w10_Edge_15 w10_Edge_15
- mkdir -p ./_output/img/w10_Firefox_54.0
- node test.js _config/w10_Firefox_54.0 w10_Firefox_54.0
- mkdir -p ./_output/img/w10_IE_11.0
- node test.js _config/w10_IE_11.0 w10_IE_11.0
- mkdir -p ./_output/img/Android_SamsungGalaxyS5
- node test.js _config/Android_SamsungGalaxyS5 Android_SamsungGalaxyS5
- mkdir -p ./_output/img/iOS_iPhone6SPlus
- node test.js _config/iOS_iPhone6SPlus iOS_iPhone6SPlus
- cd ./_output
- git init
- git remote add origin https://${GitHubKEY}@github.com/${GitHubRepoBrowserstack}.git
- cp base.md OSX_Safari_10.0.md
- sed -i "s/{platfrom_browser_name}/OSX Safari 10.0/g" OSX_Safari_10.0.md
- sed -i "s/{platfrom_browser}/OSX_Safari_10.0/g" OSX_Safari_10.0.md
- cp base.md w10_chrome_60.0.md
- sed -i "s/{platfrom_browser_name}/Windows10 Chrome 60.0/g" w10_chrome_60.0.md
- sed -i "s/{platfrom_browser}/w10_chrome_60.0/g" w10_chrome_60.0.md
- cp base.md w10_Edge_15.md
- sed -i "s/{platfrom_browser_name}/Windows10 Edge 15/g" w10_Edge_15.md
- sed -i "s/{platfrom_browser}/w10_Edge_15/g" w10_Edge_15.md
- cp base.md w10_Firefox_54.0.md
- sed -i "s/{platfrom_browser_name}/Windows10 Firefox 54/g" w10_Firefox_54.0.md
- sed -i "s/{platfrom_browser}/w10_Firefox_54.0/g" w10_Firefox_54.0.md
- cp base.md w10_IE_11.0.md
- sed -i "s/{platfrom_browser_name}/Windows10 IE 11.0/g" w10_IE_11.0.md
- sed -i "s/{platfrom_browser}/w10_IE_11.0/g" w10_IE_11.0.md
- cp base.md Android_SamsungGalaxyS5.md
- sed -i "s/{platfrom_browser_name}/Android Android Samsung Galaxy S5/g" Android_SamsungGalaxyS5.md
- sed -i "s/{platfrom_browser}/Android_SamsungGalaxyS5/g" Android_SamsungGalaxyS5.md
- cp base.md iOS_iPhone6SPlus.md
- sed -i "s/{platfrom_browser_name}/iPhone 6S Plus/g" iOS_iPhone6SPlus.md
- sed -i "s/{platfrom_browser}/iOS_iPhone6SPlus/g" iOS_iPhone6SPlus.md
- rm base.md
- git add --all .
- git commit -m "Travis Auto Generate for Material Theme"
- git push --quiet --force https://${GitHubKEY}@github.com/${GitHubRepoBrowserstack}.git