Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
96f26596
Commit
96f26596
authored
Aug 17, 2018
by
Roman Yurchak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better Circle CI workflow
parent
56ef3a09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
11 deletions
+58
-11
.circleci/config.yml
.circleci/config.yml
+58
-11
No files found.
.circleci/config.yml
View file @
96f26596
version
:
2
version
:
2
jobs
:
build
:
docker
:
-
image
:
circleci/python:3.6.5-stretch-browsers
working_directory
:
~/repo
defaults
:
&defaults
working_directory
:
~/repo
docker
:
-
image
:
circleci/python:3.6.5-stretch-browsers
jobs
:
build
:
<<
:
*defaults
steps
:
steps
:
-
checkout
-
checkout
...
@@ -23,7 +25,13 @@ jobs:
...
@@ -23,7 +25,13 @@ jobs:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8
sudo update-alternatives --set gcc /usr/bin/gcc-8
sudo update-alternatives --set gcc /usr/bin/gcc-8
sudo pip install pytest-xdist pytest-instafail selenium PyYAML
sudo pip install virtualenv
virtualenv pyodide-env
source pyodide-env/bin/activate
pip install pytest pytest-xdist pytest-instafail selenium PyYAML
# Get recent version of Firefox and geckodriver
# Get recent version of Firefox and geckodriver
wget -O firefox.tar.bz2 https://download.mozilla.org/\?product\=firefox-nightly-latest-ssl\&os\=linux64\&lang\=en-US
wget -O firefox.tar.bz2 https://download.mozilla.org/\?product\=firefox-nightly-latest-ssl\&os\=linux64\&lang\=en-US
...
@@ -36,13 +44,11 @@ jobs:
...
@@ -36,13 +44,11 @@ jobs:
unzip chromedriver_linux64.zip
unzip chromedriver_linux64.zip
mv chromedriver firefox
mv chromedriver firefox
# This Debian is so old, it doesn't know about wasm as a mime type, which then
# causes Firefox to complain when loading it. Let's just add the new mime type.
sudo bash -c "echo 'application/wasm wasm' >> /etc/mime.types"
-
run
:
-
run
:
name
:
lint
name
:
lint
command
:
|
command
:
|
source pyodide-env/bin/activate
make lint
make lint
-
restore_cache
:
-
restore_cache
:
...
@@ -53,9 +59,11 @@ jobs:
...
@@ -53,9 +59,11 @@ jobs:
name
:
build
name
:
build
no_output_timeout
:
1200
no_output_timeout
:
1200
command
:
|
command
:
|
source pyodide-env/bin/activate
ccache -z
ccache -z
make
make
ccache -s
ccache -s
make build/test.html build/test_data.txt
-
save_cache
:
-
save_cache
:
paths
:
paths
:
...
@@ -63,15 +71,47 @@ jobs:
...
@@ -63,15 +71,47 @@ jobs:
-
~/.ccache
-
~/.ccache
key
:
v1-emsdk-{{ checksum "emsdk/Makefile" }}-v6-{{ .BuildNum }}
key
:
v1-emsdk-{{ checksum "emsdk/Makefile" }}-v6-{{ .BuildNum }}
-
persist_to_workspace
:
root
:
.
paths
:
-
./*
test-firefox
:
<<
:
*defaults
steps
:
-
attach_workspace
:
at
:
.
-
run
:
-
run
:
name
:
test
name
:
test
command
:
|
command
:
|
# This Debian is so old, it doesn't know about wasm as a mime type, which then
# causes Firefox to complain when loading it. Let's just add the new mime type.
sudo bash -c "echo 'application/wasm wasm' >> /etc/mime.types"
source pyodide-env/bin/activate
export PATH=$PWD/firefox:$PATH
export PATH=$PWD/firefox:$PATH
make test
pytest test -v --instafail -k firefox
test-chrome
:
<<
:
*defaults
steps
:
-
attach_workspace
:
at
:
~/repo/build
-
run
:
name
:
test
command
:
|
# This Debian is so old, it doesn't know about wasm as a mime type, which then
# causes Firefox to complain when loading it. Let's just add the new mime type.
sudo bash -c "echo 'application/wasm wasm' >> /etc/mime.types"
source pyodide-env/bin/activate
export PATH=$PWD/firefox:$PATH
pytest test -v --instafail -k chrome
deploy
:
deploy
:
machine
:
machine
:
enabled
:
true
enabled
:
true
steps
:
steps
:
-
run
:
-
run
:
name
:
Deploy to Github Pages
name
:
Deploy to Github Pages
...
@@ -83,9 +123,16 @@ workflows:
...
@@ -83,9 +123,16 @@ workflows:
build-and-deploy
:
build-and-deploy
:
jobs
:
jobs
:
-
build
-
build
-
deploy
:
-
test-chrome
:
requires
:
requires
:
-
build
-
build
-
test-firefox
:
requires
:
-
build
-
deploy
:
requires
:
-
test-chrome
-
test-firefox
filters
:
filters
:
branches
:
branches
:
only
:
master
only
:
master
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment