-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
51 lines (51 loc) · 2.16 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
services:
- docker
jobs:
include:
- stage: Build and Push Docker Images
if: branch = production
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- (cd jupyter_docker && bash build.sh)
- (cd jupyter_docker && DOCKER_USER="root" bash runtest.sh)
# push if tests where successful
deploy:
provider: script
script: (cd jupyter_docker && bash push.sh)
- stage: Build and Push API Docker Images
if: branch = production
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- (cd web/api && bash build.sh)
# run tests (later)
- (cd web/api && bash run-d.sh)
- sleep 5 && (curl -f localhost:5000 || exit 1)
deploy:
provider: script
script: (cd web/api && bash push.sh)
- stage: deploy
if: branch = production
language: python
python: 3.6
install:
- cd pacsltk
- pip install -r requirements.txt
- pip install .
- cd ..
script:
- echo "Nothing to do for now, tests done in docker"
before_deploy:
# convert README file
- source .travis/build.sh
- cd pacsltk
deploy:
provider: pypi
user: nima_mahmoudi
distributions: sdist bdist_wheel
skip_existing: true
skip_cleanup: true
password:
secure: A7J5XL090qKyaA62GN+aCoyy8vZyaiC3gPua3v81Lk1E9CRCOXlQ30D+ez3gTLI7UsWgTsQbRSCfp1uUR5lA5XfMA+IOrj8edpDp490ig+2SixT9LMFXpMrQbx/XpKgxoR6Zwt8Bjp9vaH0pmXZVMr7l1P4OMglqcEM68/PwO+q4pKNWvZOTELq2gHFvhu2IZCKoe7klNir6Xqi3+WP6qGGZA08Jf/CNN/0twVO9SKPZ8cIaQL6Ponnf2w350lITEWltkYQmO6CIlwaEYauchxSoXW18G0MTX62gVgVH04yBezq39fVHM7iWtJfNXGNI0pEcO/JwgrbO8V7OIaTCSrFOV99BQ8f7cVoPgRKzdOIqgHHuSYtHXZfY8zWCBcQiH5wFSbqdPPsdkTfLmqUCxYH6y4U5IAp9Vb0Lg3NJex5SRCUpEkHyx1cnf3jj+IO91dmqgtxuCiqKOZAJke/lVjdvMiv2c4duT6/sUSpJ6nk9e3Zo42GxyyHW9w5Voy9E8U7KCsn/X0Nsjq8OpzQlFHVVvdBbSLx/JOtgWQyMKzSSd/Es7Q/8Xnfp6YM3jfTl8QmJMTj6YkZ5hK1k3VR5xPCKCPzInypRXQEyqCKn9e3EMV+1yLKtnii6FGnzoE2sHArGxFQCP4RxjXCsbZjbP04tb1znzZFatFbysBTUAA0=
on:
branch: production