-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
51 lines (46 loc) · 1.26 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
sudo: required
dist: trusty
language: python
node_js:
- "10"
python:
- "3.5"
git:
submodules: false
depth : 1
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# nodejs >v4 compiler requirements
- g++-4.8
- openjdk-7-jdk
before_install:
- sudo apt-get -y install python3-pip python-dev
- sudo pip3 install -U setuptools
- sudo pip3 install -U virtualenvwrapper
- sudo apt-get -y install sqlite3
- python3 -V
- pip3 -V
before_script:
- python3 bootstrap.py
- npm install @angular/cli@^6.0.0 -g
script:
# Frontend build procedure
- cd $TRAVIS_BUILD_DIR/frontend
- npm install
# List will fail because of unmet peer dependencies from an outdated package which requires
# lower version of a package that is actually installed in higher version
- npm list || true
- ng build --prod --base-href="/lgui/" --aot=false --build-optimizer=false
# Backend build procedure
- cd $TRAVIS_BUILD_DIR/backend
- virtualenv venv -p python3
- source venv/bin/activate
- pip3 install -r requirements.txt
- pip3 freeze
# Run backend server and kill it after 5 seconds
- cd $TRAVIS_BUILD_DIR
- python3 backend &
- t=$! && sleep 5 && kill $t