-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
55 lines (45 loc) · 1.49 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
sudo: required
dist: trusty
language: python
python:
- "2.7.12"
notifications:
slack: rmacc:XuJOFyi7wxFivfqbHS6KDMSw
before_install:
- export CHROME_BIN=chromium-browser
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
before_script:
- npm install -g bower
script:
- export PROJECT_ROOT=$(pwd)
- cd ~/build
- wget https://github.com/SandstoneHPC/sandstone-ide/archive/master.zip
- unzip master.zip
- cd sandstone-ide-master
- export SANDSTONE_PATH=$(pwd)
- export PATH_FILE=/home/travis/virtualenv/python2.7.12/lib/python2.7/site-packages/sandstone.pth
- echo $(pwd) > $PATH_FILE
- pip install -r requirements.txt
- cd sandstone/client
- npm install
- cd $PROJECT_ROOT
- echo $(pwd) >> $PATH_FILE
- cd sandstone_slurm
- bower install
- cd $SANDSTONE_PATH
- echo "INSTALLED_APPS = ('sandstone.lib', 'sandstone.apps.codeeditor', 'sandstone.apps.filebrowser', 'sandstone_slurm')" > sandstone_settings.py
- export SANDSTONE_SETTINGS=$SANDSTONE_PATH/sandstone_settings.py
- cd sandstone/scripts
- python run_server_tests.py
- python run_client_tests.py
- rm $PATH_FILE
- cd $SANDSTONE_PATH
- python setup.py install
- cd $PROJECT_ROOT
- python setup.py install