Skip to content

Instantly share code, notes, and snippets.

@ntreadway
Forked from aaronromeo/setup.md
Last active February 22, 2018 10:24
Show Gist options
  • Save ntreadway/7b53a78c6b3096083b6736e2974084a7 to your computer and use it in GitHub Desktop.
Save ntreadway/7b53a78c6b3096083b6736e2974084a7 to your computer and use it in GitHub Desktop.
Setting up Protractor tests for Ionic on CodeShip

Under Test Settings

'Select your technology to prepopulate basic commands' as Node.js

Setup Commands

# By default we use the Node.js version set in your package.json or the latest
# version from the 0.10 release
#
# You can use nvm to install any Node.js (or io.js) version you require.
jdk_switcher home oraclejdk8
# /usr/lib/jvm/java-8-oracle
jdk_switcher use oraclejdk8
nvm install 7.4.0
npm install -g typescript
npm install -g ionic
npm install -g protractor
npm install

Configure Test Pipelines (1 / 1used)

webdriver-manager update
nohup bash -c "webdriver-manager start 2>&1 &" && sleep 9
nohup bash -c "ionic serve --address localhost -b 2>&1 &" && sleep 9
protractor protractor.conf.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment