-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (50 loc) · 1.58 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
# This file is part of MyConference.
#
# MyConference is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version 3
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should find a copy of the GNU Affero General Public License in the
# root directory along with this program.
sudo: required
language: node_js
node_js:
- 1.0
services:
- docker
env:
- TRAVIS_CI_BUILD=true
before_install:
- npm install -g bower
- cd MyConference
- bower install
- bower install angular-mocks#1.5.3 --save-dev
- cd ..
- npm install karma --save-dev
- npm install -g npm
- npm install karma-jasmine --save-dev
- npm install jasmine-core --save-dev
- npm install -g karma-cli
- npm install karma-chrome-launcher
# Set execution rights
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- chmod +x MyConference/docker/build
- chmod +x deploy_script.sh
script:
# Build .apk file and build docker image (inside docker container)
- karma start MyConference/tests/unit-tests.conf.js
- travis_wait 30 docker run --rm -v $(pwd)/:/build -w /build -e TRAVIS_CI_BUILD clemenshuebner/amos-ss16-proj8-ionic-build:1.0 MyConference/docker/build
# Deploy via script, only on master
deploy:
provider: script
script: "./deploy_script.sh"
skip_cleanup: true
on:
branch: master