forked from Scan-o-Matic/scanomatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (56 loc) · 1.78 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
56
57
language: generic
sudo: required # Needed for chrome: https://github.com/travis-ci/travis-ci/issues/8836
dist: trusty
jobs:
include:
- node_js: "6"
addons:
chrome: stable
before_install:
- npm install
- npm install codecov
script:
- npm run flow check
- npm test
after_success:
- ./node_modules/.bin/codecov
- python: "2.7"
addons:
apt:
packages:
- postgresql
- python-numpy
- python-scipy
- python-matplotlib
before_install:
- sudo pip install tox codecov
script:
- tox -e py27
after_success:
- codecov
- stage: "Docker build & system tests"
python: "3.6"
services: ["docker"]
addons:
apt:
packages:
- docker-ce
firefox: latest
before_install:
- sudo pip install tox
- wget -O- 'https://github.com/mozilla/geckodriver/releases/download/v0.19.0/geckodriver-v0.19.0-linux64.tar.gz' | sudo tar -C /usr/local/bin -xz
before_script:
- export DISPLAY=':99.0'
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x24"
- sleep 3
script:
- docker-compose build
- tox -e system-tests -- --browser firefox
after_success:
- |
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] ;
then
echo "$DOCKER_PASSWORD" | docker login -u="$DOCKER_USERNAME" --password-stdin ;
docker-compose push;
curl "https://jenkins.molflow.com/buildByToken/buildWithParameters?job=INFRA&token=${JENKINS_TOKEN}";
fi