You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- if $TEST_API; then echo 'always_populate_raw_post_data = -1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
37
38
# list all installed npm packages
38
-
- if $TEST_EMBER; then npm list; fi
39
+
- if $TEST_EMBER || $TEST_SAUCE; then npm list; fi
39
40
# create a sauce tunnel
40
-
- if $TEST_EMBER; then ember start-sauce-connect; fi
41
+
- if $TEST_SAUCE; then ember sauce:connect; fi
41
42
42
43
script:
43
44
# run frontend and integration tests
@@ -46,14 +47,14 @@ script:
46
47
# we can not run the integration tests against api cause api is not available to test instance running at sauce lab
47
48
# therefore we only run acceptance tests by filter
48
49
# to do so we can not just add the launcher to testem ci configuration
49
-
- if $TEST_EMBER; then ember test --launch='SL_chrome,SL_firefox,SL_edge,SL_ie,SL_safari' --test-port 8080 --filter 'Acceptance |'; fi
50
+
- if $TEST_SAUCE; then ember test --launch='SL_chrome,SL_firefox,SL_edge,SL_ie,SL_safari,SL_iphone,SL_android' --test-port 8080 --filter 'Acceptance |'; fi
50
51
# install development requirements for api to run api tests
51
52
# not be done in install section cause otherwise integration tests would not fail
52
53
# if api needs an dependency in production which is specified as development dependency
53
-
- cd api/ && composer install && cd ..
54
+
- if $TEST_API; then cd api/ && composer install && cd ..; fi
54
55
# run api tests with composer
55
-
- cd api/ && ./vendor/bin/codecept run && cd ..
56
+
- if $TEST_API; then cd api/ && ./vendor/bin/codecept run && cd ..; fi
56
57
57
58
after_script:
58
59
# destroy the sauce tunnel
59
-
- if [$TEST_EMBER ]; then ember stop-sauce-connect; fi
0 commit comments