-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (49 loc) · 1.47 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
language: go
go:
- 1.7
- tip
cache:
directories:
- npm_modules
matrix:
allow_failures:
- go: tip
fast_finish: true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- gcc-4.9
firefox: "latest"
sauce_connect:
username: "timber"
jwt:
secure: "clRdwXlRjqqd0KgYzetirIaun05veeMlMtPtnoW4yWmZ/sZ3xl1GmRI4QxJ9Vk6nDa2k1JaYuQvxuSY0nN+OfWkb7LlkJJu8xaourItjhuA7O3Ro7qPLRFFfDGmC161yXj+2k18BoFmsTPMe7rzKPU2TcgfLqI1yWG4Dkbrkd2w="
install:
- nvm install stable
- nvm use stable
- export CC="gcc-4.9" export CXX="g++-4.9" LINK="gcc-4.9" LINKXX="g++-4.9"
- node --version
- gcc --version
- go get -v -t ./...
- pushd regbackend && go build -v && go build -v -tags integration && popd
- npm install
- npm update
- npm install -g grunt-cli
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- grunt -v jshint build
- cd regbackend && ./regbackend -flagfile=flags.test --staticfileslocation=../dist >/dev/null &
- npm run update-webdriver
- sleep 1 # give server time to start
script:
- go test -v ./...
- node_modules/.bin/karma start karma.conf.js --no-auto-watch --single-run --reporters=dots --browsers=Firefox
- node_modules/.bin/protractor protractor.conf.js --browser=firefox
- node_modules/.bin/karma start karma-remote.conf.js --no-auto-watch --single-run --reporters=dots,saucelabs
- node_modules/.bin/protractor protractor-remote.conf.js
after_script:
- killall regbackend