Skip to content

Commit

Permalink
Trying to fix Python test (Windows/x64) job.
Browse files Browse the repository at this point in the history
Trying to fix Docker job.
  • Loading branch information
rturrado committed Mar 5, 2024
1 parent 9c4a4f7 commit dbb1a59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ FROM ubuntu:22.04

RUN apt-get -qq update && \
apt-get -qq upgrade && \
apt-get -qq -y install build-essential cmake git flex bison python3 python3-pip swig && \
apt-get -qq -y install build-essential cmake git flex bison npm python3 python3-pip swig wget && \
python3 -m pip install conan pytest

ADD . /libqasm-copy

WORKDIR /libqasm-copy
RUN npm install n -g
RUN n stable
RUN ln -sf $(find /usr/local/n/versions/node/ -type f -name node | head -1) /usr/bin/node
RUN conan profile detect --force
RUN conan build . -pr=conan/profiles/emscripten -pr:b=conan/profiles/release -b missing
RUN ls -hl build/Release/emscripten
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def run(self):

cmd = (local['conan']['create']['.']
['--version'][get_version()]
['-s:h']['compiler.cppstd=20']
['-s:h']["libqasm/*:build_type=" + build_type]
['-s:a']['compiler.cppstd=20']
['-s:a']["libqasm/*:build_type=" + build_type]

['-o']['libqasm/*:build_python=True']
['-o']['libqasm/*:build_tests=True']
Expand Down

0 comments on commit dbb1a59

Please sign in to comment.