Skip to content

Commit bb0d84c

Browse files
committed
tweak env
1 parent 22efd41 commit bb0d84c

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ matrix:
3030
- brew install carthage > /dev/null 2>&1
3131
- brew install ios-webkit-debug-proxy > /dev/null 2>&1
3232
- brew install nvm > /dev/null 2>&1
33-
- source $(brew --prefix nvm)/nvm.sh
3433
- brew install python3
3534
- pip install virtualenv
3635
- virtualenv env -p python3
3736
- source env/bin/activate
3837
install:
3938
- echo Hello Macaca!
39+
- source $(brew --prefix nvm)/nvm.sh
4040
- nvm install 7
41-
- nvm use 7
42-
- npm install -g macaca-cli macaca-ios
41+
- npm i ios-simulator macaca-cli macaca-ios -g
42+
- open -a Simulator --args -CurrentDeviceUDID `ios-simulator -n 'iPhone 6s'` > /dev/null 2>&1
4343
- pip install -r requirements.txt
4444
script:
4545
- macaca server --verbose &
@@ -75,14 +75,14 @@ matrix:
7575
- unzip gradle-3.3-all.zip > /dev/null
7676
- export GRADLE_HOME=$PWD/gradle-3.3
7777
- export PATH=$GRADLE_HOME/bin:$PATH
78+
- . $HOME/.nvm/nvm.sh
79+
- nvm install 7
7880
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
7981
- emulator -avd test -no-audio -no-window &
8082
- android-wait-for-emulator
8183
- adb shell input keyevent 82 &
8284
install:
8385
- echo Hello Macaca!
84-
- nvm install 7
85-
- nvm use 7
8686
- npm install -g macaca-cli macaca-android
8787
- pip install virtualenv
8888
- virtualenv env -p python3.5

tests/macaca-ios-sample.test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
desired_caps = {
1010
'platformName': 'iOS',
1111
'platformVersion': '10.0',
12-
'deviceName': 'iPhone 5s',
12+
'deviceName': 'iPhone 6s',
1313
'app': 'https://npmcdn.com/ios-app-bootstrap@latest/build/ios-app-bootstrap.zip',
1414
'reuse': 1
1515
}

0 commit comments

Comments
 (0)