forked from scrapinghub/portia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (45 loc) · 1.09 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
language: python
python: 3.7
dist: bionic
services:
- docker
env:
- WHEELHOUSE=$HOME/.cache/wheelhouse PIP_FIND_LINKS=file://$WHEELHOUSE PIP_WHEEL_DIR=$WHEELHOUSE
cache:
directories:
- "$HOME/.cache/pip"
- "$HOME/.cache/wheelhouse"
- portiaui/node_modules
- portiaui/bower_components
before_install:
- docker build -t scrapinghub/portia .
- docker ps -a
install:
- docker run scrapinghub/portia /app/docker/run-tests.sh
- pushd portiaui
- nvm install 10.16.0
- nvm use 10.16.0
- npm install -g bower ember-cli@2.6.3
- npm install
- bower install
- popd
script:
- pushd portiaui
- npm rebuild node-sass
- npm test
- popd
before_deploy:
- cd slybot
- pip install twine
- sudo chown -R $USER .
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: scrapinghub
password:
secure: S5hZT2YBncUSkPTyR5RUQnACfTsW2ZtpHeQucIamKWN+xkE8KK9O0cWUMuKQ0q3U5ShFkZdhO4PnBjvtP54Dq9IogJAudkDJCylctf4qGoIlWu01mAoJzcUfrS5KW+VolF/opBJObwG38EIOOsVy9UYq7DeQcryAAG1RuMjONAk=
on:
all_branches: true
tags: true
repo: scrapinghub/portia
condition: "$TRAVIS_TAG =~ ^slybot-[0-9][.][0-9]*"