-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (34 loc) · 926 Bytes
/
.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
language: java
jdk:
- oraclejdk8
env:
- NODE_VERSION=5
notifications:
slack: ng-camp:aXB3psuLzMhyiqGoDglEu6Sv
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sudo apt-get install python-software-properties
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update
- sudo apt-get install gcc-5 g++-5
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 80 --slave /usr/bin/g++ g++ /usr/bin/g++-5
- sudo update-alternatives --set gcc /usr/bin/gcc-5
install:
- nvm install $NODE_VERSION
- cd frontend && npm install
script:
- cd ../backend
- chmod +x gradlew
- ./gradlew test
- cd ..
- nvm use $NODE_VERSION
- cd frontend npm test
before_script:
- sh -e /etc/init.d/xvfb start
# - nohup bash -c webdriver-manager start 2>&1 &
- sleep 1 # give server time to start
branches:
only: master
cache:
directories: node_modules