forked from monarch-initiative/monarch-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (54 loc) · 1.68 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
language: javascript
before_install:
- "uname -a"
- "gcc --version"
- "lsb_release -a"
- "sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y"
- "sudo apt-get update -q"
- "sudo apt-get install python-software-properties -y"
- "sudo apt-get install gcc-4.8 -y --force-yes"
- "sudo apt-get install g++-4.8 -y --force-yes"
- "sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8"
- "gcc --version"
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
- "npm cache clean -f"
- "nvm install v4.4.1"
- "nvm use v4.4.1"
- "npm version"
- "npm install -g [email protected]"
- "npm version"
- "which npm"
# command to install dependencies
install:
- "# rm -rf node_modules/"
- "./install.sh"
- "sudo pip install selenium"
- "sudo pip install behave"
- "sudo pip install jsonpath-rw"
before_script:
- "export DISPLAY=:99.0"
- "# npm run start &"
- "# install.sh does this instead... 'npm run build'"
- "NODE_PATH=./lib/monarch USE_BUNDLE=1 USE_LOG_FETCH=1 node --harmony_destructuring ./lib/monarch/web/webapp_launcher.js beta &"
- "sleep 20"
after_success:
- "cat ./webdriver.log"
- "cat ../../start-server.log"
after_failure:
- "cat ./webdriver.log"
- "cat ../../start-server.log"
# command to run tests
script:
- "ps auwx|grep webapp_launcher.js"
- "unset NODE_PATH && USE_LOG_FETCH=1 make test"
- "cd tests/behave"
- "TARGET=http://localhost:8080 behave"
# whitelist
branches:
only:
- master
- production
- stage
notifications:
email: