This repository has been archived by the owner on May 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy path.travis.yml
49 lines (40 loc) · 1.82 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: java
addons:
hosts:
- samplestack.local
# for non-pull-requests, aka pushes, requires secure emvironment
# variables for access to MarkLogic nightlies (when applicable)
# and for SauceLabs integration. These are configured in
# travis repository settings so that this file may be
# used across forks/branches.
before_install:
- npm -v
- node -v
# set Pacific time for ML download (look for the right nightly)
- echo 'America/Los_Angeles' | sudo tee /etc/timezone
- sudo dpkg-reconfigure --frontend noninteractive tzdata
install:
# install/start MarkLogic,
# (first downloading, converting to a .deb)
- 'if [ "${TRAVIS_SECURE_ENV_VARS}" = "true" ] ; then ./shared/js/dev-tasks/e2e/travis-install-ml.sh release ; else (exit 0) ; fi'
- 'if [ "${TRAVIS_SECURE_ENV_VARS}" = "true" ] ; then sudo /etc/init.d/MarkLogic start ; else (exit 0) ; fi'
# intall node things and browser app
# (gulp e2e commands below invoke the corresponding gradle tasks
# to congifure the java middle tier)
- npm cache clean
- npm install -g [email protected]
- npm install -g gulp
- npm install
script:
- gulp unit
# for pull requests, we can't use sec. env vars, so no access
# to nightlies or sauce, run against publicly available ML
# and test only with PhnatomJS, staying within Tavis environment
#
# TODO: until we have made ML 8.0 publically available, we
# *do* use credentials to get at the nightly. Thus, travis
# tests will, until this is changed, always fail on pull requests
#
# Also, don't run tests tagged as @broken since we already know about them
- 'if [ "${TRAVIS_SECURE_ENV_VARS}" = "true" ] ; then gulp e2e --tags="~@broken" --sauce --middle-tier=java ; else (exit 0) ; fi'
# - 'if [ "${TRAVIS_SECURE_ENV_VARS}" = "false" ] ; then gulp e2e --tags="~@broken" --middle-tier=java ; else (exit 0) ; fi'