forked from kotIIT/ITMS448-osint-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (48 loc) · 1.21 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
os: linux
language: python
python:
- "3.6" # current default Python on Travis CI
# Pipenv caching stolen from https://github.com/dragorhast/server/commit/9533328f83e0a3a10878015f425fba92df3c289b
env:
global:
- VIRTUAL_ENV=$HOME/.local/share/virtualenvs/bowser-venv
- PIP_CACHE_DIR=$HOME/.cache/pip
- PIPENV_CACHE_DIR=$HOME/.cache/pipenv
- PIPENV_IGNORE_VIRTUALENVS=1
- PIPENV_SKIP_LOCK=1 # Speeds up build.
cache:
pip: true
directories:
- "$PIP_CACHE_DIR"
- "$PIPENV_CACHE_DIR"
- "$HOME/.local/share/virtualenvs"
- "$VIRTUAL_ENV"
- "$HOME/.npm"
# command to install dependencies
install:
- pip install pipenv
- pip install python-coveralls
- pipenv install --dev
# command to run tests
script:
- bash scripts/ci-scripts/run_bowser_tests.sh
# - bash scripts/ci-scripts/run_bowser.sh
# - bash scripts/ci-scripts/test-spider.sh
# - pushd client
#
# - npm install
#
# - npm run-script build
#
# - |
# # Don't run in BG yet -- this may be useless.
# ## run in bg
# #npm start &
# #
# ## this is the server pid
# #NPM_SERVER_PID=$!
#
# - popd
after_success:
- pushd bowser
- coveralls --data_file bowser/.coverage # Import our code coverage data