Skip to content

Commit 63c428f

Browse files
committed
Organize CD into build stage
This will allow deployment to only be run once. Before it was trying to deploy after unit tests in each Python version.
1 parent b5a968f commit 63c428f

File tree

3 files changed

+1591
-32
lines changed

3 files changed

+1591
-32
lines changed

.travis.yml

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -14,39 +14,36 @@ addons:
1414
chrome: stable
1515

1616
before_install:
17-
- sudo apt update
18-
# javascript dependencies
19-
- sudo apt install nodejs
20-
- npm install -g yarn
21-
# install chromebrowser
22-
- wget -N http://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip -P ~/
23-
- unzip ~/chromedriver_linux64.zip -d ~/
24-
- rm ~/chromedriver_linux64.zip
25-
- sudo mv -f ~/chromedriver /usr/bin/
26-
- sudo chmod +x /usr/bin/chromedriver
17+
- sudo apt update
18+
# javascript dependencies
19+
- sudo apt install nodejs
20+
- npm install -g yarn
21+
# install chromebrowser
22+
- wget -N http://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip -P ~/
23+
- unzip ~/chromedriver_linux64.zip -d ~/
24+
- rm ~/chromedriver_linux64.zip
25+
- sudo mv -f ~/chromedriver /usr/bin/
26+
- sudo chmod +x /usr/bin/chromedriver
2727

2828
install:
29-
# Install IDOM along with test requirements
30-
- pip install -r requirements.txt
31-
- pip install -e .[all]
29+
# Install IDOM along with test requirements
30+
- pip install -r requirements.txt
31+
- pip install -e .[all]
3232

3333
script:
34-
- bash scripts/test.sh
35-
36-
branches:
37-
only:
38-
- master
39-
- /^\d+\.\d+(\.\d+)?(-\S*)?$/
40-
41-
before_deploy:
42-
- sudo apt update
43-
# javascript dependencies
44-
- sudo apt install nodejs
45-
- npm install -g yarn
46-
47-
deploy:
48-
provider: pypi
49-
distributions: "bdist_wheel"
50-
on:
51-
repo: rmorshea/idom
52-
tags: true
34+
- bash scripts/test.sh
35+
36+
jobs:
37+
include:
38+
- stage: deploy
39+
before_deploy:
40+
- sudo apt update
41+
# javascript dependencies
42+
- sudo apt install nodejs
43+
- npm install -g yarn
44+
deploy:
45+
provider: pypi
46+
distributions: "bdist_wheel"
47+
on:
48+
repo: rmorshea/idom
49+
tags: true

scripts/deploy.sh

Whitespace-only changes.

0 commit comments

Comments
 (0)