File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change 1
- sudo : required
2
1
language : python
3
2
3
+ cache :
4
+ directories :
5
+ - ~/.rustup
6
+
4
7
matrix :
8
+ fast_finish : true
5
9
include :
6
- - python : " 2.7"
7
- - python : " 3.5"
8
- - python : " 3.6"
9
- - python : " 3.7-dev"
10
+ - python : " 2.7"
11
+ - python : " 3.5"
12
+ - python : " 3.6"
13
+ - python : " 3.7-dev"
10
14
allow_failures :
11
- - python : " 3.7-dev"
12
-
13
- env :
14
- - RUST_VERSION=nightly
15
+ - python : " 3.7-dev"
15
16
16
17
install :
17
- - python -c "import sysconfig; print('\n'.join(map(repr,sorted(sysconfig.get_config_vars().items()))))"
18
- - mkdir ~/rust-installer
19
- - curl -sL https://static.rust-lang.org/rustup.sh -o ~/rust-installer/rustup.sh
20
- - sh ~/rust-installer/rustup.sh --prefix=~/rust --spec=$RUST_VERSION -y
21
- - export PATH="$HOME/rust/bin:$PATH"
18
+ - curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
19
+ - source $HOME/.cargo/env
20
+ - rustc -V
21
+ - cargo -V
22
22
- export PYTHON_LIB=$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
23
23
- export LIBRARY_PATH="$LIBRARY_PATH:$PYTHON_LIB"
24
24
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PYTHON_LIB:$HOME/rust/lib"
25
- - rustc -V
26
25
- pip install -e .
27
26
28
27
script :
29
- - cd example && python setup.py develop && cd ..
30
- - cd example_tomlgen && python setup.py tomlgen_rust -w build && cd ..
28
+ - cd example_tomlgen
29
+ - python setup.py tomlgen_rust -w build
30
+ - cd ..
You can’t perform that action at this time.
0 commit comments